2011-08-13 243 views
0

我已经安装了minGW和msys。在eclipse CDT中,我创建了使用交叉gcc工具链的C++项目。eclipse中构建cpp项目的问题

的Eclipse创建了我可以通过命令行使用make文件,所以如果我跑make all项目编译正确,但如果我使用Eclipse来构建时,出现以下消息

**** Build of configuration Debug for project cpp **** 

make all 
Building file: ../src/main.cpp 
Invoking: Cross G++ Compiler 
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.cpp" 
make: *** [src/main.o] Error 1 

**** Build Finished **** 

回答

1

我选择错了工程链中,更改为mingw gcc,现在可以运行