Generating makefile for C++ project using Eclipse
-
First off all I'm sorry I don't speak German (although I'm from Belgium) but this is the best forum for C++ I found on the net. Here's my problem:
Hi all,
I just started learning C++ and noticed that a standard c++ project in Eclipse doesn't create a makefile, that you have to write it yourself. Me as a major noob do not know how but I read a managed c++ project generates a makefile and yes it does (when hitting the build all button) but it puts it in the "release" folder or "Debug" folder. And also creates a bunch of other files in that folder. But does notg create an exe file. The console gives this error:
**** Full rebuild of configuration Debug for project hellowmanage ****
Build error
(Exec error:Launching failed)[/quote]
When using the HelloWorld example in a standard make project when you write the makefile on your own it compiles succesfully...
My compiler is MinGW.Can anyone help me or send a working Eclipse configuration?
If none of you is working with eclipse can you suggest me another IDE/Compiler to use?
-
so far I know the path to the builder don't exist or is wrong in this case. Read the "CDT Standard Make Tutorial" for more info. You also can get help in 'eclipse.newcomer' - news server news.eclipse.org
Greetings
Werner
-
Werner Salomon schrieb:
so far I know the path to the builder don't exist or is wrong in this case. Read the "CDT Standard Make Tutorial" for more info. You also can get help in 'eclipse.newcomer' - news server news.eclipse.org
Greetings
WernerThanks for the reply.
I already asked in that newsgroup but so far no answer, it's not really active. I'll read that guide but can anyone explain why it works when there's a makefile typed by me and the builder can't create an exe when the makefile is generated?
-
Dieser Thread wurde von Moderator/in HumeSikkins aus dem Forum C++ in das Forum Compiler-Forum verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.
-
Hi.
I had the same error that you have, and I just figured it outWhen I installed MinGW no Make was installed though I selected it during installation. So check if in your MingGW\bin directory a file named mingw32-make.exe exists. If not go to the mingw homepage and download and install MinGW Make. After this you have to tell eclipse, that you want to use your own Make. For Managed Make Projects you have to right-click on your project and select "Properties". Select "C/C++ Build" and here it is the Card "Build Settings". Uncheck "Use default command" and type into the text field "mingw32-make -f makefile". Click "OK" and when you Choose "Project"->"Clean" you should be able to build. Here with me there is an error in "Problems" "make * ... failed. The system cannot find the file specified". But when I right-click on it and remove it everything runs just fine... Maybe someone knows an answer?
If it still doesn't work you may have missed to set your path environment variable. How to this and how to use a Standard Make Project is described in this tutorial:
It is German but there so many pictures, I think you will understand it.Maccesch