yyyyyyyyyyyyyyyyyyyy

博客园 首页 新随笔 联系 订阅 管理
  3788 随笔 :: 0 文章 :: 57 评论 :: 630万 阅读

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是程序运行是使用的

参考

posted on   xxxxxxxx1x2xxxxxxx  阅读(299)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示