C++ Netbeans 7.1调试/测试会话中的boost线程链接失败
我正在Netbeans上开发一个应用程序,我可以运行它。我无法调试或重新连接测试文件。当我尝试这样做时,我得到:C++ Netbeans 7.1调试/测试会话中的boost线程链接失败,c++,linux,boost,netbeans,boost-thread,C++,Linux,Boost,Netbeans,Boost Thread,我正在Netbeans上开发一个应用程序,我可以运行它。我无法调试或重新连接测试文件。当我尝试这样做时,我得到: ./build/Debug/GNU-Linux-x86/tests/TestFiles/f1: error while loading shared libraries: libboost_thread.so.1.49.0: cannot open shared object file: No such file or directory 它试图在调试或测试会话中包含库或特定文件,
./build/Debug/GNU-Linux-x86/tests/TestFiles/f1: error while loading shared libraries: libboost_thread.so.1.49.0: cannot open shared object file: No such file or directory
它试图在调试或测试会话中包含库或特定文件,但我还是得到了它。是否与Netbeans不一致
任何想法都将不胜感激 我假设您的操作系统是Linux。根据您的电子邮件,您可以访问libboost_thread.so.1.49.0文件的副本。让DIR成为该库存在的目录 如果此计算机上没有超级用户,请使用方法A。如果有超级用户,请使用方法A或方法B 方法A。适用于非超级用户或超级用户 假设DIR是libboost_thread.so.1.49.0库所在的目录 我假设您可以从shell命令行而不是GUI图标启动NetBeans
- 退出NetBeans。在bash中执行以下命令:
export LD_LIBRARY_PATH=DIR:$LD_LIBRARY_PATH
- 从命令行启动netbeans
cp -a DIR/libboost_thread.so* /usr/lib
您尝试运行的应用程序动态链接Boost.Thread,但在运行时找不到此库。确保库存在于相关搜索路径上。我不知道应该指向哪里。所以/Ur/LIB是NETBeBes所检查的C++文件。一般来说,C++ LIBS(?)很棒,很描述性的答案。