how to run an executable [message #175787] |
Fri, 01 September 2006 00:17  |
Eclipse User |
|
|
|
Originally posted by: msuhk45.gmail.com
Hello!
I'm running Eclipse 3.2.0 with CDT (the latest one) on windows xp with the
(djgpp) version of g++ (the file was perviously named gpp.exe, which I had
to rename to g++.exe to make it work with eclipse) and gcc
http://www.delorie.com/djgpp/
When I compile a source file in a managed make C++ project, I get a *.exe
file in the "Rlease" directory, which is in the project directory.
When I right-click on the project folder and chose "Run as -> run/local
C++..." I get the following error message:
"Launch failed no binaries"
I have to double-click the *.exe file to execute it, but it quits when it
ends so I can't see the results (such as when writing simple "hellow world"
programs)
Fortunately, I figured out a way to capture the output using this way of
execution by adding an input prompt at the end, but does anyone know of
easier way of executing *.exe's? (such as in a built-in console or
something)
PS g++ takes a relatively long time to compile code if envoked through
Eclipse. (I know it's faster from the command line only "g++ foo.cpp")
Eclipse seems to add a lot of parameters to g++ and requires "make" to
compile, which makes the compile time considerably longer...
Can I compile code faster? (also without using make?)
Regards
|
|
|
|
|
Re: how to run an executable [message #176007 is a reply to message #175911] |
Mon, 04 September 2006 04:11  |
Eclipse User |
|
|
|
Originally posted by: norbert.ploett.fen-net.de
mus
> However, I'd like to have the *.exe files named the same as the *.cpp
> files,
> such as foo.exe for foo.cpp. Can I do that?
now, how are you building? If you are running your own makefile you must
change the makefile.
If you are the approach I described with the make targets view then you must
add a -o foo.exe to the build command.
For managed make, go to the project properties and change the C/C++ Build ->
Build Settings -> Artifact name
Regards,
Norbert
|
|
|
Powered by
FUDForum. Page generated in 0.08407 seconds