wangne 发表于 2006-3-25 16:29:02

求助:arm-elf-gcc编译出错但gcc通过,为什么?

错误提示:
# arm-elf-gcc -Wl,-elf2flt -o works.o works.c
In file included from /usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/sys/socket.h:35,
               from works.c:3:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/bits/socket.h:305: asm/socket.h: ?????????

lumit-support-1 发表于 2006-3-25 20:26:59

是你需要的库没有加进去啊
自己把库的路径加上就可以了
页: [1]
查看完整版本: 求助:arm-elf-gcc编译出错但gcc通过,为什么?