linker error while linking boost log tutorial (undefined references)
问题 I have installed boost on Fedora 20 via yum and am trying some simple examples. However I have trouble to compile the first example from the logging tutorial. Compiling with g++ -c boosttest.cc works fine, but I get lot's of errors when I try to link it with g++ boosttest.o -o boosttest -lboost_log -lpthread the full error-log: boosttest.o: In function `main': boosttest.cc:(.text+0x44): undefined reference to `boost::log::v2s_mt_posix::trivial::logger::get()' boosttest.cc:(.text+0x9a):