![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unix-Linux
暮叶
这个作者很懒,什么都没留下…
展开
-
aix动态库(.so)编译使用
AIX 下通常用xlC来编译c++代码,例如我写了一个string的类,包含俩文件 string.h 和 string.cpp 现在我想将其编译成动态链接库(.so文件) 步骤为:1.$(CC) -q64 -o libstring.o -c libstring.cpp $(CFLAGS) -I$(HOME)/include -L$(LD_LIBRARY_PATH)2.ld -v转载 2010-05-06 13:47:00 · 2948 阅读 · 0 评论 -
AIX 5L 上的共享库内存占用
1.查看系统当前加载的所有动态库: genkld2.查看 /usr/lib/libpthreads.a浏览该库并查看它实现了哪些函数: dump -Tv /usr/lib/libpthreads.a | grep EXP3.查看哪些程序加载了libpthreads.a 库: for i in $(ps -o pid -e | grep ^[0-9] ) ; do j=转载 2010-05-06 15:36:00 · 550 阅读 · 0 评论