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相关文章推荐
- LIBRARY_PATH是编译时候用的,LD_LIBRARY_PATH是程序运行是使用的
- Linux程序可以编译连接但是执行时找不到*.so 一般都和LD_LIBRARY_PATH有关
- rails 4.0 中使用 cap 发布的时候,出现 LD_LIBRARY_PATH 没有设置的问题 的解决办法
- linux不指定LD_LIBRARY_PATH运行程序
- 移植boa后运行CGI程序加载LD_LIBRARY_PATH环境变量问题
- linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
- Linux源代码编译软件及PKG_CONFIG_PATH、LD_LIBRARY_PATH、/etc/ld.so.conf、ldconfig
- 在Ubuntu使用gcc编译的程序无法运行的问题。
- C#使用_如何在没有装VS(Visual Studio)的机器上编译运行C#程序
- 在命令行下使用JDK编译和运行package中的java程序
- Windows 下使用 GNUstep 编译并运行 Objective-C 程序
- linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
- linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
- Windows 下使用 GNUstep 编译并运行 Objective-C 程序
- 使用交叉编译编译在OpenWRT上运行的程序
- linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
- linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
- linux共享库位置配置(LD_LIBRARY_PATH环境变量 或者 更改/etc/ld.so.conf 或者 使用-R选项)
- 如何正确使用环境变量LD_LIBRARY_PATH
- XP下运行使用delphi XE2 皮肤编译的程序的小问题