http://bbs.chinaunix.net/thread-520258-1-1.html 怎样把.c文件编译成.so文件? gcc -fpic -c prog.c gcc --shared -fpic -o prog.so prog.o