Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT does not build my projects: Build Error
CDT does not build my projects: Build Error [message #68190] Mon, 05 May 2003 03:16 Go to next message
Eclipse UserFriend
Originally posted by: krystianson.hotmail.com

I'm using eclipse 2.1 and cdt 1.0.1 on a WindowsXP system with
MinGW-2.0.0-3 installed, and my makefile looks like (I've the build
settings setup up to use it):

objects = hello.o
hello : $(objects)
gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/ -lstdc++
$(objects) : hello.cpp
gcc -c hello.cpp
all :
${MAKE} hello
PHONY : clean
clean :
-del hello.exe $(objects)

But I get the following error:

Build Error
(Exec error:Launching failed)
Re: CDT does not build my projects: Build Error [message #68202 is a reply to message #68190] Mon, 05 May 2003 03:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krystianson.hotmail.com

Sorry, my bad. I got it all figured out: it turns out that make is not in
the same directory that gcc is in, so I just had to append to my path
variable (gcc is in C:\\MinGW\\bin, while make is in the
C:\\msys\\1.0\\bin)
Re: CDT does not build my projects: Build Error [message #68684 is a reply to message #68202] Tue, 06 May 2003 07:24 Go to previous messageGo to next message
Henning Riedel is currently offline Henning RiedelFriend
Messages: 310
Registered: July 2009
Senior Member
Krystian Smith schrieb:
> Sorry, my bad. I got it all figured out: it turns out that make is not in
> the same directory that gcc is in, so I just had to append to my path
> variable (gcc is in C:\\MinGW\\bin, while make is in the
> C:\\msys\\1.0\\bin)
>
the 'make' program is indeed included in the MinGW binary directory but
its called mingw32-make.exe. You should _copy_ it to the same dir but
name it make.exe!
Re: CDT does not build my projects: Build Error [message #68693 is a reply to message #68190] Tue, 06 May 2003 07:39 Go to previous messageGo to next message
Henning Riedel is currently offline Henning RiedelFriend
Messages: 310
Registered: July 2009
Senior Member
Krystian Smith schrieb:
> I'm using eclipse 2.1 and cdt 1.0.1 on a WindowsXP system with
> MinGW-2.0.0-3 installed, and my makefile looks like (I've the build
> settings setup up to use it):
>
> objects = hello.o
> hello : $(objects)
^^^^ Shouldnt that be hello.exe??

> gcc -o hello $(objects) -L C:/MinGW/lib/gcc-lib/mingw32/3.2/ -lstdc++
^^^^^ Replace that with $@

> $(objects) : hello.cpp
> gcc -c hello.cpp
> all :
> ${MAKE} hello
> PHONY : clean
^^^^^ the . infront missing! should be .PHONY
put this above your rules and add the all and debug rule like
.PHONY: all debug clean

> clean :
> -del hello.exe $(objects)
>
> But I get the following error:
>
> Build Error
> (Exec error:Launching failed)
>
Re: CDT does not build my projects: Build Error [message #68766 is a reply to message #68684] Tue, 06 May 2003 17:11 Go to previous message
Eclipse UserFriend
Originally posted by: krystianson.hotmail.com

kesselhaus wrote:

> Krystian Smith schrieb:
> > Sorry, my bad. I got it all figured out: it turns out that make is not in
> > the same directory that gcc is in, so I just had to append to my path
> > variable (gcc is in C:\\MinGW\\bin, while make is in the
> > C:\\msys\\1.0\\bin)
> >
> the 'make' program is indeed included in the MinGW binary directory but
> its called mingw32-make.exe. You should _copy_ it to the same dir but
> name it make.exe!


Ahhhhh..., thank you very much then. (What's the diff anyway?)
Previous Topic:Reports on CDT 1.1.0
Next Topic:C/C Projects View Failure
Goto Forum:
  


Current Time: Sun Jun 30 13:50:40 GMT 2024

Powered by FUDForum. Page generated in 0.03974 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top