-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linking with Boost librarie #69
Comments
This is a known behavior in Ubuntu and its related to some change that Easy workaround is to change the order of linking. First the static then TARGET_LINK_LIBRARIES (main pagmo_static ${MANDATORY_LIBRARIES} ) And the same for examples and tests in case you need them Dario On 17 July 2014 17:24, JonathanGallagher notifications@github.com wrote:
|
Thank you. It seems to build fine now!! |
This helped me on Ubuntu 14.04! But I strongly suggest you make this fix in the master branch: for static libraries, the order of linking is important, and symbols are resolved from left to right. Some linkers may be more permissive, but the Ubuntu linker now just follows the standard! For the background, check http://stackoverflow.com/a/409470/987623 |
Frederik, changing the order in the master branch breaks linking in fedora, gentoo, Dario On 7 November 2014 21:20, Frederik Beaujean notifications@github.com
|
That is surprising. I have no way of checking, but if you say so, I'm sure you tried. That would mean the linkers on all these systems act strangely. |
We did try indeed ... and were equally disappointed :) On 7 November 2014 21:30, Frederik Beaujean notifications@github.com
|
So would I :-) |
Thank you! above advice worked for me on LINUX MINT 17 ID-d below withpagmo TAG: 1.1.7-2-g140296f Date: Sat Jul 4 18:49:27 2015 +0200DISTRIB_ID=LinuxMint |
`This is a known behavior in Ubuntu and its related to some change that Easy workaround is to change the order of linking. First the static then TARGET_LINK_LIBRARIES (main pagmo_static ${MANDATORY_LIBRARIES} ) And the same for examples and tests in case you need them Dario` @darioizzo , where would this go now with the newer version of the CMakeLists.txt file? I'm having the same issues on Ubuntu 16.04 running gcc 5.4.0. |
Ubuntu 14.04.
x64
Using libboost1.55
At [49%] Built target pagmo_static
Linking CXX executable main"
I start getting a lot of undefined references to boost library things.
"In function pagmo::detail::get_current_thread_data()"
... "undefined reference to boost::this_thread::interruption_point()"
... "boost::thread::detatch"
... "boost::thread::XX"
etc.
I checked. libboost-thread1.55-dev
is installed via apt-get.
It seems that in the Ubuntu repositories, there are two variants of boost. There is 1.54 and 1.55. I installed the latter.
The text was updated successfully, but these errors were encountered: