交叉编译问题,msg.o: could not read symbols: File in wrong format

walkany 2011-09-08 03:29:04




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
...全文
961 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
bingyunjunqing 2012-07-12
  • 打赏
  • 举报
回复
楼主,你的问题解决了吗?我遇到同样的问题了,可不可以共享一下问题原因和解决方法?谢谢
wanhl1990 2012-06-28
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
makefile有问题.

链接器设成gcc了而不是armxxxxgcc
[/Quote]

这个好像是要交叉编译的吧!如果换成gcc,当然不会出现这种问题了
帅得不敢出门 2011-09-08
  • 打赏
  • 举报
回复
makefile有问题.

链接器设成gcc了而不是armxxxxgcc
  • 打赏
  • 举报
回复
msg.o重新编下,编之前删掉之前的

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧