Linking Boost Log
Hello, I try to compile/link a boost log example: http://www.boost.org/doc/libs/1_58_0/libs/log/example/doc/tutorial_file.cpp Using: g++ boostlog.cpp -lboost_log -lpthread with g++ 5.1.0 and boost 1.58 on arch linux. The trivial examples worked fine when I put #define BOOST_LOG_DYN_LINK 1 at the very first line. But with this example I get % g++ boostlog.cpp -lboost_log -lpthread /usr/bin/ld: /tmp/ccT2pz5x.o: undefined reference to symbol '_ZN5boost6detail12set_tss_dataEPKvNS_10shared_ptrINS0_20tss_cleanup_functionEEEPvb' /usr/lib/libboost_thread.so.1.58.0: error adding symbols: DSO missing from command line Probably a missing library but which one? I've not really found any linking documentation and I was guessing so far... Thanks, Florian
participants (1)
-
Florian Lindner