开发者

Having trouble building project on eclipse cdt? G++ no found!

I installed Eclipse CDT C/C++ and MinGW. But I cant build hello开发者_如何学C world program. The following message appears in the console.

Build of configuration Debug for project 51 **

Internal Builder is used for build ** g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\51.o ..\src\51.cpp Internal Builder: Cannot run program "g++": Launching failed Build error occurred, build is stopped Time consumed: 83 ms.

Can any one point out where the problem lies?


g++ is the C++ compiler. MinGW is a port of the gnu compilers to windows.

Is g++ on your path? Open a cmd window and type g++. Is there a similar error? If yes, find g++.exe, put the directory you find it in, in your path. Restart eclipse and retry. If you don't find it, then you probably need to install the C++ compiler from MinGW.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜