急:arm-linux-uclibc-gcc 生存so库,在运用程序调用报错。
生存库编译如下:
arm-linux-uclibc-gcc avsend.o util.o udp.o ctrlmgr.o -lpthread -L. -shared -fPIC -o libavsend.so
运行程序编译如下:
arm-linux-uclibc-gcc test.o -lpthread -L. -lavsend -lstdc++ -o avsend
但是生成的avsend运行报错如下:
/mnt/tztx $ ./avsend
Can't modify /lib/libavsend.so's text section. Use GCC option -fPIC for shared o
bjects, please.
/mnt/tztx $
很着急啊,摆脱各位大虾帮个忙了。。。。