我在QNX 6.5.0中构建了boost 1.57.0。没有生成错误。但是一些库链接到libboost_system.so指定相对路径。我保存了编译日志。下面是boost_thread联动步:用相对路径构建的boost库
"QCC_gpp" -o "bin.v2/libs/thread/build/qcc/release/threading-multi/libboost_thread.so.1.57.0" -shared "bin.v2/libs/thread/build/qcc/release/threading-multi/pthread/thread.o" "bin.v2/libs/thread/build/qcc/release/threading-multi/pthread/once.o" "bin.v2/libs/thread/build/qcc/release/threading-multi/future.o" "bin.v2/libs/system/build/qcc/release/threading-multi/libboost_system.so.1.57.0" -lm
所以,当我运行ldd libboost_thread.so
,它不能找到libboost_system。我认为libboost_thread应该与-lboost_system
选项相关联。但我不知道该怎么做。
谢谢。
编辑:我不能建立任何与boost_thread链接的程序。因为,boost_thread在bin.v2/libs/system/build/qcc/release/threading-multi
文件夹中搜索boost_system。然而,boost_thread和boost_system都位于库搜索文件夹中。 (用LD_LIBRARY_PATH
定义)
同样的问题在http讨论删除
$(HAVE_SONAME)
://计算器。 com/q/23485903/1048959 – 2015-07-07 17:27:47