-
Notifications
You must be signed in to change notification settings - Fork 17
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
Build fails on ubuntu 16.04 with gcc 5.4 #7
Comments
A quick fix is to add this to the CMakeLists.txt for your project add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) Although the conan docs suggest that it should also work, for some reason specifying libstdc++ (vs libstdc++11) doesn't trigger this flag for me, which caused the build to fail with the same error you're seeing. If I have time I'll track down the root cause. |
That is true, the Check: https://github.com/conan-io/conan/blob/develop/conans/client/generators/cmake_common.py#L171 This only works when the The root cause is the high decoupling between conan and the build system. When you install conan dependencies you specify some settings, and a I have added an issue (conan-io/conan#1202) to the main conan repo, to try to improve this (even if it doesn't look easy without breaking the low coupling). Thanks for the feedback! |
Thanks for noticing! :) What's strange about this is that I built all dependencies from source with the same compiler and no specific settings or overrides, but still ended up with two different CXX11 versions somehow. I checked the conaninfo.txt file in the build dir of the Protobuf dependency and everything matched. Happy to provide any further details if you need them. |
New ubuntu 16.04
Error
It works on ubuntu 14.04 with gcc 4.8 and 6.2.
The text was updated successfully, but these errors were encountered: