Hello guys!
I am getting an error when building on Ubuntu 16.04:
[ 49%] Built target pagmo_static[ 49%] Linking CXX executable mainsrc/libpagmo.a(jde.cpp.o): In function void boost::serialization::throw_exception<boost::archive::archive_exception>(boost::archive::archive_exception const&):jde.cpp:(.text._ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_[_ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_]+0x1d): undefined reference to boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)collect2: error: ld returned 1 exit statusCMakeFiles/main.dir/build.make:99: recipe for target 'main' failedmake[2]: *** [main] Error 1CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/main.dir/all' failedmake[1]: *** [CMakeFiles/main.dir/all] Error 2Makefile:138: recipe for target 'all' failedmake: *** [all] Error 2
I read the solution of #69 to change the order of linking, but my CMakeCache.txt has the following lines already:
# Link main to pagmo_static library. IF(BUILD_MAIN) ADD_EXECUTABLE(main main.cpp) TARGET_LINK_LIBRARIES(main pagmo_static ${MANDATORY_LIBRARIES}) ENDIF(BUILD_MAIN)
I also built GCC from source like this: https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/, but haven't figured out how to let pagmo know of this source-built GCC.
I tried building PyGMO and main separately, which did not work either. Although PyGMO compiled without errors, when using it gave me:
ImportError: /usr/lib/python2.7/dist-packages/PyGMO/core/_core.so: undefined symbol: _ZN5boost7archive17archive_exceptionC1ERKS1_
I appreciate any feedback :)
Hello guys!
I am getting an error when building on Ubuntu 16.04:
[ 49%] Built target pagmo_static[ 49%] Linking CXX executable mainsrc/libpagmo.a(jde.cpp.o): In function void boost::serialization::throw_exception<boost::archive::archive_exception>(boost::archive::archive_exception const&):jde.cpp:(.text._ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_[_ZN5boost13serialization15throw_exceptionINS_7archive17archive_exceptionEEEvRKT_]+0x1d): undefined reference to boost::archive::archive_exception::archive_exception(boost::archive::archive_exception const&)collect2: error: ld returned 1 exit statusCMakeFiles/main.dir/build.make:99: recipe for target 'main' failedmake[2]: *** [main] Error 1CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/main.dir/all' failedmake[1]: *** [CMakeFiles/main.dir/all] Error 2Makefile:138: recipe for target 'all' failedmake: *** [all] Error 2I read the solution of #69 to change the order of linking, but my CMakeCache.txt has the following lines already:
# Link main to pagmo_static library. IF(BUILD_MAIN) ADD_EXECUTABLE(main main.cpp) TARGET_LINK_LIBRARIES(main pagmo_static ${MANDATORY_LIBRARIES}) ENDIF(BUILD_MAIN)I also built GCC from source like this: https://solarianprogrammer.com/2016/10/07/building-gcc-ubuntu-linux/, but haven't figured out how to let pagmo know of this source-built GCC.
I tried building PyGMO and main separately, which did not work either. Although PyGMO compiled without errors, when using it gave me:
ImportError: /usr/lib/python2.7/dist-packages/PyGMO/core/_core.so: undefined symbol: _ZN5boost7archive17archive_exceptionC1ERKS1_I appreciate any feedback :)