我正在编译Legecy Mongo驱动程序(1.0.0),它说它找不到boost库,即使我可以看到那里的文件,
使用gcc 4.4.6
pdsf6 $ scons --cpppath=/.../sw/boost_1_57_0 --libpath=/.../sw/boost_1_57_0/stage/lib --prefix=/.../sw/mongo-cxx-driver --sharedclient
scons: Reading SConscript files ...
scons version: 2.3.4
python version: 2 6 6 'final' 0
Checking whether the C++ compiler works... yes
Checking whether the C compiler works... yes
Checking if C++ compiler "g++" is GCC... yes
Checking if C compiler "gcc" is GCC... yes
Checking if C compiler supports -Wno-unused-local-typedefs... no
Checking if C compiler supports -Wno-unused-function... yes
Checking if C compiler supports -Wno-unused-private-field... no
Checking if C compiler supports -Wno-deprecated-declarations... yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no
Checking if C compiler supports -Wno-unused-const-variable... no
Checking if C compiler supports -Wno-missing-braces... yes
Checking if we are using libstdc++... yes
Checking for libstdc++ 4.6.0 or better... no
Checking if we are on a POSIX system... yes
Checking if the POSIX monotonic clock is supported... yes
Checking for __thread... yes
Checking for gcc __atomic builtins... no
Checking for useable __sync builtins... yes
Checking for C++ header file boost/version.hpp... yes
Checking for C++ library boost_regex-mt... no
Checking for C++ library boost_regex... yes
Checking for C++ library boost_thread-mt... no
Checking for C++ library boost_thread... no
can't find boost
它实际上找到了libboost_regex,但没有找到线程!
/.../sw/boost_1_57_0/stage/lib
文件夹有libboost_thread.so ..任何人都可以帮我弄清楚为什么这不起作用?请!