2011年4月29日

如何用GCC编译出动态库文件(*.so)

摘要: 使用下面的makefileview plaincopy to clipboardprint? 01.CC=gcc 02.CFLAGS=-Wall -ggdb -fPIC 03. 04.all: libfunc 05. 06.libfunc:func.o func1.o 07. $(CC) -shared -Wl,-soname,libfunc.so.1 -o libfunc.so.1.1 $ < 08. ln -sf libfunc.so.1.1 libfunc.so.1 09. ln -sf libfunc.so.1 libfunc.so 10. 11.%.o:%.c 12. $(CC 阅读全文

posted @ 2011-04-29 18:45 sohu2000000 阅读(373) 评论(0) 推荐(1) 编辑

导航