Boost logo

Boost Users :

Subject: [Boost-users] Linking Boost Log
From: Florian Lindner (mailinglists_at_[hidden])
Date: 2015-06-19 09:17:26


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net