当前位置: 技术问答>linux和unix
交叉编译问题,msg.o: could not read symbols: File in wrong format
来源: 互联网 发布时间:2017-03-03
本文导语: arm-none-linux-gnueabi-gcc -static -I../include -I./../lib -I./../include -D__USE_FIXED_PROTOTYPES__ -D_THREAD_SAFE -DHAVE_CONFIG_H -fpic -DFOR_SHARED_LIBRARY -DIN_LIBRARY -c ./../lib/gss.c cc1: warning: include location "/usr/include/mysql" is unsafe for cross-comp...
arm-none-linux-gnueabi-gcc -static -I../include -I./../lib -I./../include -D__USE_FIXED_PROTOTYPES__ -D_THREAD_SAFE -DHAVE_CONFIG_H -fpic -DFOR_SHARED_LIBRARY -DIN_LIBRARY -c ./../lib/gss.c
cc1: warning: include location "/usr/include/mysql" is unsafe for cross-compilation
gcc -o libsocks5_sh.so -shared msg.o protocol.o log.o hostname.o confutil.o buffer.o cache.o wrap.o wrap_tcp.o wrap_udp.o conf.o libproto.o select.o rld.o null.o addr.o upwd.o gss.o -ldl -lnsl -lc
/usr/bin/ld: msg.o: Relocations in generic ELF (EM: 40)
msg.o: could not read symbols: File in wrong format
|
msg.o重新编下,编之前删掉之前的
|
makefile有问题.
链接器设成gcc了而不是armxxxxgcc
链接器设成gcc了而不是armxxxxgcc