views:

784

answers:

2
****** Internal Builder is used for build               ******
g++ -ot1.o ..\t1.cpp
Internal Builder: Cannot run program "g++": The system cannot find the file specified.

Build error occurred, build is stopped

I am new to eclipse, on windows XP, want to run c/c++ progms + linux build (cygwin is installed with needed packages)
Above said error is coming and builds fails! Please kindly suggest.

Edit: appends to path env variable as e:\cygwin\bin;

This is for ref:

alt text

+1  A: 

How did you setup your Cygwin toolchain in your Eclipse CDT?
(from the Alex Wu's excellent blog post in Alex's Tech Blog)

1/ Install the Cygwin properly, you need following packages:

binutils
gcc
gcc-core
gcc-g++
gcc-mingw-core
gcc-mingw-g++
make
gdb (needed if you want to support debug in eclipse)

you can check your cygwin installation using the 'cygcheck -c' command

alt text

2/ Add %cygwin%\bin to your env PATH, then open the eclipse. you will find the cygwin tool chain will be shown when you open a new c/cpp project wizard.

alt text

3/ Configure the GDB.

Go to Windows->Preference->C/C++ -> Debug -> Common Source Lookup.
Add following 'Path mapping':

\cygdrive\c -> c:\
\cygdrive\d -> d:\ 
other drives if any .......

alt text

VonC
thx for your reply VonCI have done all the steps you mentioned but still getting same build error :(
Rupali
@Rupali: sorry to read that. There must be some other cause in your configuration which causes that. I will keep looking on my end.
VonC
thanks...plz let me know if you need any other info ..m also trying
Rupali
A: 

you need minGW 64 bits

calin