makefile里:
libtest.so: 1.o 2.o 3.o 4.o
gcc -shared -fPIC -o libtest.so 1.c
1.c 用到的方法都在2.o,3.o,4.o里, 现在编译libtest.so没问题,但是程序跑的时候,
提示 1.c调用2.o里的方法load fail;
小弟没怎么弄过makefile, 求大神指点!
makefile里:
libtest.so: 1.o 2.o 3.o 4.o
gcc -shared -fPIC -o libtest.so 1.c
1.c 用到的方法都在2.o,3.o,4.o里, 现在编译libtest.so没问题,但是程序跑的时候,
提示 1.c调用2.o里的方法load fail;
小弟没怎么弄过makefile, 求大神指点!