码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-07-22 14:23:36      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:参考   lock   运行   ini   success   .com   div   ref   use   

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

参考

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

标签:参考   lock   运行   ini   success   .com   div   ref   use   

原文地址:http://www.cnblogs.com/stevendes1/p/7221122.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!