Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » compiling using CDT
compiling using CDT [message #129210] Mon, 29 November 2004 15:06 Go to next message
Eclipse UserFriend
Originally posted by: vman_2003.yahoo.co.uk

Hi, ive installed CDT plugin for eclipse and can open my c++ project files
but i cant seem to compile them. I get thsi error message:

Error launching builder (make all )
(Exec error:Launching failed)

ive installed cygwin which has the make,g++ and gdb. I also have dev-Cpp
which also has make,gcc and gdb. I dont know how i can tell eclipse to
look in the cywgin bin folder for the make command, theres no option for
it.

I have eclipse v3. Can someoen tell me if theres a way to make eclipse
compile the files or do i have to compile them through the cywgin command,
but i prefer to compile and run through eclipse.

thanks
Re: compiling using CDT [message #129261 is a reply to message #129210] Mon, 29 November 2004 19:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Harry!

You have to set your Windows' Path Environment Variable.
Look at the Post from 10.11.2004 and my answers to it:
> Run As->C Local Application - "Launch failed no binaries"

Greetz,
Daniel
Re: compiling using CDT [message #129285 is a reply to message #129261] Mon, 29 November 2004 21:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vman_2003.yahoo.co.uk

I set the window path variable (system one) variable name make,
value=C:\Program Files\Cygwin\bin

And i restart eclipse and it still come sout with:
Error launching builder (make -k all )
(Exec error:Launching failed)

I even restarted the comp thinking variable doesnt get shown until system
first starts up. I changed the build command in C++ in eclipse to default
and tried make command still doesnt work.

I went into dos and tried the make command and it comes out with:
C:\>make
'make' is not recognized as an internal or external command,
operable program or batch file.

So im assuming its the env varible, i went into bash and typing make works
but i think its suppose to work there anyways(i think).

is there something i forgot to do and need to try, really be greatful

thanks
Re: compiling using CDT [message #129376 is a reply to message #129285] Tue, 30 November 2004 07:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vman_2003.yahoo.co.uk

i used the set command and it shows

make=C:\Program Files\Cygwin\bin
NUMBER_OF_PROCESSORS=2
OS=Windows_NT

so really if i type make into dos it should print out target not found ,
but i dont get how does it know to use make.exe. Do i need to create a
varaible that points to make.exe, otherwise it just points to that
directory.
Re: compiling using CDT [message #129389 is a reply to message #129376] Tue, 30 November 2004 07:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jon.mail.com

Harry wrote:

> i used the set command and it shows
> make=C:\Program Files\Cygwin\bin

It's your PATH environment variable that you should be updating to
include the Cygwin binaries. From a DOS prompt do the following:

set PATH=C:\Program Files\Cygwin\bin;%PATH%

...now launch Eclipse from within the same prompt and it will use the
environment you've just configured.

Other approaches would be:

(i) Update the PATH in the formal way using the Windows UI.
(ii) Create a batch file that does the above "set" and then launches
Eclipse - then use the batch file to launch Eclipse in the future
Re: compiling using CDT [message #129495 is a reply to message #129389] Tue, 30 November 2004 12:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vman_2003.yahoo.co.uk

hello Jon

Your way worked, i created a bat file and placed the commands in there, my
project now compiles. I dont understand why teh system varaible thingy
doesnt work but doesnt matter.

But im still getting launch failed o binaries when i try to run it. I
looked in teh folder and the .exe file is there(im assumign this is the
binary its talkign about). I clicked on the binary file it self and it
came out with

'this application has failed to start because cygwin1.dll was not
found...' that file is in the bin folder so any suggestions

thanks
Re: compiling using CDT [message #129506 is a reply to message #129495] Tue, 30 November 2004 13:13 Go to previous message
Eclipse UserFriend
Harry,
Having read the entire thread, I would suggest that your problems are
still related to the PATH environment variable.

All exes compiled under Cygwin need to link in the Cygwin DLLs at
run-time. You can check out their FAQ for why. Anyway, DLLs must be in
the PATH (which includes the directory where the executable resides) or
you will see this message. Your choices include copying the needed DLLs
into the directory where your executable is, or fixing your path problem.

Frankly, I'd avoid putting the Cygwin binaries in any directory with
spaces in the path but I doubt that this is the root of your present
difficulties.

Sean

Harry wrote:
> hello Jon
>
> Your way worked, i created a bat file and placed the commands in there,
> my project now compiles. I dont understand why teh system varaible
> thingy doesnt work but doesnt matter.
>
> But im still getting launch failed o binaries when i try to run it. I
> looked in teh folder and the .exe file is there(im assumign this is the
> binary its talkign about). I clicked on the binary file it self and it
> came out with
> 'this application has failed to start because cygwin1.dll was not
> found...' that file is in the bin folder so any suggestions
>
> thanks
Previous Topic:compiling using CDT in eclipse
Next Topic:How to setup CDTenvironment to compile a wxWidgets project?
Goto Forum:
  


Current Time: Tue May 06 22:56:37 EDT 2025

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

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

Back to the top