Error "Program g++ not found in PATH" : eclipse LUNA

Hi.
I'm new to eclipse LUNA for cpp.
when i try to create a hello world project and select Cross GCC compiler , after i click finish , i see this error:
Error : Program g++ not found in PATH.
and:
Error : Program gcc not found in PATH.
I think i installed gcc in this path :
C:\TDM-GCC-32
if this is the gcc , i added it to the PATH , but still the same error.
if it's not , i have Code::Blocks installed on my PC and i think the gcc installed with Code::Blocks.
What should i do ?
OS : Windows 7 Ultimate SP1.
Last edited on
It's not a cross compiler is it? Can you show what options eclipse gives you, from which you select "Cross GCC Compiler"?

Also check the PATH field in Windows -> preferences-> C/C++ -> Build -> Environment, to see if your path is there. not just in the windows path. You may have to restart eclipse.

Since the message is that they can't be found, search for gcc.exe and g++.exe in your path and post their location.
I have two options for choosing the compiler : Cross GCC & Microsoft Visual C++
Note : I want to use gcc compiler.
Last edited on
This looks like eclipse can't find your compiler.

Did you check the PATH field as suggested? There are other more drastic measures that can be taken, but let's see if the PATH is okay first.
Just in case...

If you're not bent on using TDM_GCC (which is really just mingw gcc, you may want to try the mingw/msys combo

What is the mingw/msys ?
is it a part of gcc , or what ?
I know what is MinGW !!! --> Minimalist GNU for Windows.
But i want to use the MinGW GCC (Which is the best C/C++ compiler) .
Last edited on
Topic archived. No new replies allowed.