Program & ldquo; G ++ & rdquo; And & ldquo; Gcc & rdquo; Not found in the path

advertisements

I am using eclipse luna. I have installed CDT into it. For accessing GNU tool chain I have installed latest version of MinGW and given the path of MinGW\bin in environment variables. But when I have built a test project(written in C), I am getting the following errors:

Program "g++" not found in path
Program "gcc" not found in path

Info: I am using Windows 8 32 bit OS


I had similar problem and I solved it by:

Installing g++ The GNU C++ compiler using Ubuntu Software Center

Changing in: Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build in Complier Settings [Shared]

from: ${COMMAND} -E -P -v -dD "${INPUTS}"

to: /usr/bin/${COMMAND} -E -P -v -dD "${INPUTS}"

I am using ubuntu but try the same in windows.

Be sure that you have installed g++ and then add whole path before $ as (path)${COMMAND} -E -P -v -dD "${INPUTS}"

I hope it helps.