Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
增强c++;Linux和eclipse上的共享对象文件 我终于成功地使用Eclipse、C++和Boost构建了我的项目,但是当我运行这个程序时,我得到: ~/workspace/HelloWorld/Debug/HelloWorld: error while loading shared libraries: libboost_regex.so.1.54.0: cannot open shared object file: No such file or directory_C++_Linux_Eclipse_Boost_Static Linking - Fatal编程技术网

增强c++;Linux和eclipse上的共享对象文件 我终于成功地使用Eclipse、C++和Boost构建了我的项目,但是当我运行这个程序时,我得到: ~/workspace/HelloWorld/Debug/HelloWorld: error while loading shared libraries: libboost_regex.so.1.54.0: cannot open shared object file: No such file or directory

增强c++;Linux和eclipse上的共享对象文件 我终于成功地使用Eclipse、C++和Boost构建了我的项目,但是当我运行这个程序时,我得到: ~/workspace/HelloWorld/Debug/HelloWorld: error while loading shared libraries: libboost_regex.so.1.54.0: cannot open shared object file: No such file or directory,c++,linux,eclipse,boost,static-linking,C++,Linux,Eclipse,Boost,Static Linking,显然,我不希望它链接到这样一个特定的版本,如果可能的话,在构建文件时根本没有共享库 即使我已经手动安装了最新的boost,我如何使用更通用的名称,并且/或者我可以或者应该将其静态链接到我的二进制文件中?动态链接到错误的库版本(即,不是编译翻译单元时使用的版本)是非常危险的。要进行静态链接,请设置适当的路径。我没有设置LD\u LIBRARY\u PATH,当缓存得到它时,我就这样做了。。。静态链接将有助于。。。谢谢

显然,我不希望它链接到这样一个特定的版本,如果可能的话,在构建文件时根本没有共享库


即使我已经手动安装了最新的boost,我如何使用更通用的名称,并且/或者我可以或者应该将其静态链接到我的二进制文件中?

动态链接到错误的库版本(即,不是编译翻译单元时使用的版本)是非常危险的。要进行静态链接,请设置适当的路径。我没有设置
LD\u LIBRARY\u PATH
,当缓存得到它时,我就这样做了。。。静态链接将有助于。。。谢谢