-
Notifications
You must be signed in to change notification settings - Fork 160
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 problems with latest libboost #445
Comments
Linking against 1.58 works fine for me on Windows. Why do you call it the latest version, though? The boost site shows 1.60 as the latest release. |
I had similar link problem with boost 1.60, and the cause was missing macro definition during FO build. I used following macros to fix the issue:
First macro puts "control" into your hands, |
@codekiddy2 Where did you add them? |
You need to define these macros during compilation step, that is provide them to g++ compiler on command line. ex: If you use cmake to compile, the easy way is to supply these macros into "cmake-gui" by adding new "entry" prior to configuration. On command line it is done like this: make sure your distro supplies shared boost libraries, otherwise this won't work. edit: |
Thank you. I let you know how it comes out. :) Yes, linking again. 💃 |
Ok, I assume that means the issue is solved. @codekiddy2, thanks for the assist 😃 |
Can / should these defines be pre-added by the CMakeLists.txt files? |
With these defines linker will search for dll import libs, and those who built static boost libs only, will need to either build shared version of boost or modify Cmake files to link statically. To make sure Cmake build works for everyone, Cmake files can be configured so that end user is given a choice for static link. Sorry, I'm not sure how to properly modify Cmake files so I'm sharing my opinion here instead:
Now those who want static link simply invoke:
|
Yes, that fix alone works as well. :) I have deleted my repository to not spread bad code. |
Hey guys, I've tried building freeorion-0.4.7.1-r1 against boost-1.63.0 and it fails at linking stage with:
and here's
|
@madjestic, can you open a new issue for that? This issue is too old to be reopened, and although your problem seems to be similiar, it's not really the same AFAICT (the missing symbols are different ones). |
I currently have this linking problem when it comes to linking executables:
GCC:
gcc version 5.3.1 20151207 (Debian 5.3.1-3)
libboost: 1.58.0.1
The text was updated successfully, but these errors were encountered: