使用C ++ Eclipse构建错误

时间:2015-06-25 12:41:16

标签: c++ eclipse build makefile mingw

我使用MinGW和MSYS配置了我的Eclipse Helios for C ++。我将相同的内容添加到PATH变量中。但是我无法使用Eclipse构建。下面的错误信息本身几乎没有信息:

Build of configuration Debug for project Test
Internal Builder is used for build               
g++ -IC:\MinGW\lib\gcc\mingw32\4.8.1\include\c++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\Test.o ..\src\Test.cpp
Build error occurred, build is stopped
Time consumed: 220  ms.

我可以从命令行使用make / g ++。

感谢

我启用了更多日志"不要因错误而失败"设置:

**** Rebuild of configuration Debug for project Test ****

**** Internal Builder is used for build               ****
g++ -IC:\MinGW\lib\gcc\mingw32\4.8.1\include\c++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\Test.o ..\src\Test.cpp
g++ -oTest.exe src\Test.o
g++: error: src\Test.o: No such file or directory
g++: fatal error: no input files
compilation terminated.
Build completed with errors
Time consumed: 337  ms.  

1 个答案:

答案 0 :(得分:0)

尝试分离' -o'以及2 g ++命令行中的文件名。