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

eclipse-cdtgccmingw

I installed Eclipse CDT C/C++ and MinGW. But I cant build hello 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?

Best Answer

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.

Related Topic