当前位置: 代码迷 >> 电信IT应用开发 >> agent++ INSTALL资料中的一段话没看明白
  详细解决方案

agent++ INSTALL资料中的一段话没看明白

热度:2303   发布时间:2013-02-26 00:00:00.0
agent++ INSTALL文件中的一段话没看明白
Please note: 
1. You need a GNU make (gmake) to build AGENT++.
2. The Makefiles of AGENT++ and AgentX++ build static and shared 
libaries by default. You will have to remove the shared libs by

rm agentX++/lib/libagentx++.so
rm agent++/lib/libagent++.so

in order to build a statically linked executable. Otherwise, you will
have to set the environment variable LD_LIBRARY_PATH (Linux, Solaris) 
or SHLIB_PATH (HPUX 11) accordingly.


看完之后我还是不明白为什么要删除libagentx++.so和libagent++.so这两个文件,
不删除放在那会有什么影响吗?
求高人指点
------解决方案--------------------------------------------------------
如果不删除,其他程序可能使用这两个动态库。

如果程序使用了动态链接库,在运行时必须在环境变量LD_LIBRARY_PATH (Linux, Solaris)   
or SHLIB_PATH (HPUX 11)中指定动态库的地址,否则程序运行时会报告错误。
  相关解决方案