I have cygwin installed, and I want to use Eclipse with CDT for development under Windows 7. However, I get following error:
**** Build of configuration Default for project hello_cpp ****
make all
g++ -O2 -g -Wall -fmessage-length=0 -c -o hello_cpp.o hello_cpp.cpp
process_begin: CreateProcess(C:\cygwin\bin\g++.exe, g++ -O2 -g -Wall -fmessage-length=0 -c -o hello_cpp.o hello_cpp.cpp, ...) failed.
make (e=5): Access denied.
make: *** [hello_cpp.o] Error 5
**** Build Finished ****
- I'm able to use g++ as standalone compiler.
- cygwin /bin folder is
added to path.
After googling I found out that C:\cygwin\bin\g++.exe
is a cygwin symbolic link and Windows doesn't understand it and I need to point to the g++-3 location directly. How do I do it?
Best Answer
I think you've done something wrong and need to start over again. Just installed Cygwin and Eclipse CDT (Indigo) on my Windows 7 and all works fine and auto-magicaly for me.
Here's what I did and I think you need to do:
gcc
,gcc-g++
andmake
(I additionally installed couple of other things likegcc4
,w32api
but it's optional)C:\cygwin\bin
(or wherever else you installed it) to your EnvironmentPATH
variableFile -> New Project -> C++ Project
and selectHello World C++ Project
. You should see theCygwin GCC
in theToolchains
list.Done!
Build output: