wangfang_star 发表于 2012-05-11 11:32

arm-linux-gcc交叉编译问题

开发环境是用的eclipse,在setting里设置了compiler,linker,都设置成了arm-linu-gcc,assembler设置为了arm-linux-as。编译一个简单的test.c,内容就是helloworld。
出错为:
arm-linux-gcc -o0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"test.d" -MT"test.d" -o"test.o" "../test.c"
arm-linux-gcc: unrecognized option `-MP'
arm-linux-gcc: unrecognized option `-MFtest.d'
arm-linux-gcc: unrecognized option `-MTtest.d'
cc1: Invalid option `-fmessage-length=0

这个.c文件直接在command下用arm-linux-gcc -o test test.c 能成功编译生成目标文件,所以应该是选项问题。刚学linux,请问,这是什么错?
页: [1]
查看完整版本: arm-linux-gcc交叉编译问题