我在 Red Hat Linux rel 5.5 上使用 g++ 4.1.2 和 Boost 1.53。链接过程中有一个问题,我不清楚。我收到错误消息:
/usr/local/boost_1_53_0/stage/lib/libboost_thread.so:
undefined reference to `std::bad_exception::what() const@GLIBCXX_3.4.9'
/usr/local/boost_1_53_0/stage/lib/libboost_thread.so:
undefined reference to `std::bad_alloc::what() const@GLIBCXX_3.4.9'
collect2: ld returned 1 exit status
libstdc++.so
我链接的文件版本似乎存在问题。如果我交替隐藏和显示这个文件,我可以让我的程序链接。但是,我希望能够像我在介绍 Boost 库和并发线程之前所做的那样一步“制作”。
如果您有任何见解,请帮助阐明这个问题。