您的位置:首页 > 其它

LIBRARY_PATH是编译时候用的,LD_LIBRARY_PATH是程序运行是使用的

2017-07-22 13:27 471 查看

LD_LIBRARY_PATH与LIBRARY_PATH的区别

看起来很像,但是完全是两码事。


LIBRARY_PATH is used by gcc before compilation to search for directories containing libraries that need to be linked to your program.


LIBRARY_PATH是编译时候用的


LD_LIBRARY_PATH is used by your program to search for directories containing the libraries after it has been successfully compiled and linked.


LD_LIBRARY_PATH是程序运行是使用的

参考

LD_LIBRARY_PATH vs LIBRARY_PATH
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐