`

运行时无法找到第三方库的解决办法

阅读更多

./getmytest

error while loading shared libraries: xxx.so: cannot open shared object file: No such file or directory

 

需要将环境变量export  LD_LIBRARY_PATH=xxxxxx即可。

或者在Makefile中的-lxxx后面加上-Wl,-R dir

或在~/.bash_profile中加上export  LD_LIBRARY_PATH=xxxxxx

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics