undefined reference to `boost::log_mt_posix::basic_attribute_set<char>::~basic_attribute_set()'
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Newbie question... I'm trying out Boost for the first time because I want to test drive the Boost Log library. I built this test program... #include <boost/log/trivial.hpp> #include <iostream> int fibonacci(int num) { int i; int a = 1; int b = 1; for (i = 2; i <= num; ++i) { BOOST_LOG_TRIVIAL(info) << "Iteration " << i << " (a = " << a << ", b = " << b << ")..."; b = a + b; a = b - a; } return a; } int main() { std::cout << "8th fibonacci number: " << fibonacci(8) << std::endl; return 0; } Compile data: **** Build of configuration Debug for