摘要:
源文件为main.c, x.c, y.c, z.c,头文件为x.h,y.h,z.h 现在我编译为动态库(*.so)文件.# 生成动代连接库,假设名称为libtest.so gcc x.c y.c z.c -fPIC -shared -o libtest.so # 将main.c和动态连接库进行连接生成可执行文件 gcc main.c -L. -ltest -o main # 输出LD_LIBRAR... 阅读全文
posted @ 2004-10-12 20:50
红色蚂蚁
阅读(654)
评论(0)
推荐(0)
浙公网安备 33010602011771号