读书人

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

发布时间: 2012-12-29 10:28:09 作者: rapoo

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)中指定动态库的地址,否则程序运行时会报告错误。

读书人网 >电信IT应用开发

热点推荐