我想用GTEST但执行告诉我g ++的标准lib路径。而如何增加新的
./netTest: error while loading shared libraries: libgtest.so.0:
cannot open shared object file: No such file or directory
- 什么是标准路径在GCC链接查找库
- 什么是存储库 的Debian的标准路径
- 如何添加libpaths到g ++(-L标志是否正确?)
注2:我问,因为GTEST的库都在/usr/local/libs/
但有刚PYT hon和gtest。所有其他库位于/usr/lib/
。因此,我猜测gtest安装程序出错了。
libgtest-dev只是v1.5的头文件。 debian wheezy上没有libgtest0这个共享库。 ls.so.conf内容:'include /etc/ld.so.conf.d/ *。conf'。 /etc/ld.so.conf.d/libc.conf内容:'/ usr/local/lib'。这正是libgtest.so.0所在的地方。为什么我会提到这个错误? – ManuelSchneid3r
也许缓存没有更新。以root身份运行'ldconfig -v'。 – chill