Home › Forum › SOFA › Building SOFA › [SOLVED] undefined reference to 'boost::program_options::abstrac_variables_map::operator'
Tagged: 64_bits, GCC, Linux_ubuntu, SOFA_1906
- This topic has 3 replies, 2 voices, and was last updated 5 years, 2 months ago by Hugo.
-
AuthorPosts
-
18 July 2019 at 11:02 #13960gaetanBlocked
Hi, I’m trying to build sofa on a cluster. The following dependencies are already installed :
– cmake v3.5.2
– gcc v7.3.0
– boost v1.58.0.I downloaded the sources of v19.06, configured and generated without any problem. When I try to
make
, I have the following error :[ 5%] Linking CXX shared library ../../../lib/libSofaHelper.so CMakeFiles/SofaHelper.dir/ArgumentParser.cpp.o: In function sofa::helper::ArgumentParser::showArgs()': ArgumentParser.cpp:(.text+0x3f9): undefined reference to boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' ... CMakeFiles/SofaHelper.dir/ArgumentParser.cpp.o:(.data.rel.ro._ZTVN5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcEE[_ZTVN5boost15program_options11typed_valueISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEcEE]+0x38): undefined reference to boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const' collect2: error: ld returned 1 exit status make[2]: *** [lib/libSofaHelper.so.19.06.00] Error 1 make[1]: *** [SofaKernel/SofaFramework/SofaHelper/CMakeFiles/SofaHelper.dir/all] Error 2 make: *** [all] Error 2
The log files can be found at https://drive.google.com/open?id=13rMlsAcdF2d4Rm1E8KqE_CzL8Bzn6znG
Any help on this issue would be welcomed,
Thank you,
Gaetan
22 July 2019 at 17:44 #13975HugoKeymaster29 July 2019 at 11:46 #14015gaetanBlockedHi @hugo,
I was myself in vacations last week and hope you feel better ! I tried this morning your solution and it works quite well.
Because I’m using cmake v3.5, the command is a bit different :
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)
may work for cmake 3.12 and older.Thank you very much for your help,
Gaetan
29 July 2019 at 11:51 #14016HugoKeymasterGreat that it worked!
Thanks for the feedback!Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.