Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Exec error: Launching failed
Exec error: Launching failed [message #148827] Thu, 14 July 2005 15:10 Go to next message
Eclipse UserFriend
Originally posted by: pbtranchinh.lycos.com

hi all!

I had sucessfully compiled and create my C++ application, but when I try
to step through the codes using debugger it says
Exe error: Launching failed.

i've looked through the internet and it says:
"This usually indicates that "make" is not on your path. Open a command
window and type "make". If you receive the equivalent of "command not
found" then you will need to ensure that the location of the make
executable is on your path. (If you have changed your build command to
something else, like "mingw32-make -f makefile" then this something else
needs to be on your path.)

Note that the managed build project will always use "make.exe". If
make.exe does not exist it will not work."

Sorry, but I have no idea what's saying? could some show me steps by steps
how to resolve this. Thank you. Oh, by the way, I am using window xp.
Eclipse version 3.1 and CDT version 3.0
Re: Exec error: Launching failed [message #148870 is a reply to message #148827] Thu, 14 July 2005 21:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: plankton.softwitch.net

Check do you have gdb.exe for debugging.

steve wrote:
> hi all!
>
> I had sucessfully compiled and create my C++ application, but when I try
> to step through the codes using debugger it says
> Exe error: Launching failed.
>
> i've looked through the internet and it says:
> "This usually indicates that "make" is not on your path. Open a
> command window and type "make". If you receive the equivalent of
> "command not found" then you will need to ensure that the location of
> the make executable is on your path. (If you have changed your build
> command to something else, like "mingw32-make -f makefile" then this
> something else needs to be on your path.)
>
> Note that the managed build project will always use "make.exe". If
> make.exe does not exist it will not work."
>
> Sorry, but I have no idea what's saying? could some show me steps by
> steps how to resolve this. Thank you. Oh, by the way, I am using window
> xp. Eclipse version 3.1 and CDT version 3.0
>
>
Re: Exec error: Launching failed [message #148969 is a reply to message #148870] Fri, 15 July 2005 20:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pbtranchinh.lycos.com

I don't know. Could you show me how to check it and install it?
I checked the gdb official website and they let me download it but all the
files seem weird to me because I am a window user. I would really
appreciated if you could help me. Thanks
Re: Exec error: Launching failed [message #148976 is a reply to message #148969] Fri, 15 July 2005 20:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: plankton.softwitch.net

If you dont have any special purpose, You should use cygwin. Cygwin
emulates linux environment for windows. Cygwin contains many packages,
and you can choose them while install. In Devel category, There are GCC,
G++, GDB, MAKE, INDENT in it. You can also configurate tool chains
manually. anyway, using cygwin is much easier. After you install them,
you have to add directory paths into %path% in System Environment.

Finally, open command shell. (windows start -> run -> cmd[enter])
Type gdb, gcc, make, g++, indent in shell.
If they work, it's ready.


ps. You can also use my plugin to format c/c++ codes.
http://softwitch.net/wp/index.php/archives/2005/07/06/simple -indent-code-formatter-for-cdt/

steve wrote:
> I don't know. Could you show me how to check it and install it?
> I checked the gdb official website and they let me download it but all
> the files seem weird to me because I am a window user. I would really
> appreciated if you could help me. Thanks
>
Re: Exec error: Launching failed [message #148998 is a reply to message #148976] Sat, 16 July 2005 03:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pbtranchinh.lycos.com

Thanks. I got it to work. But then now it comes up with another error.
Error:
Failed to set program arguments, environment or working directory.

Do you have any ideas on this?
Re: Exec error: Launching failed [message #149051 is a reply to message #148998] Sat, 16 July 2005 16:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: plankton.softwitch.net

When did you see that error message?
I want to see entire messages in build console.

steve wrote:
> Thanks. I got it to work. But then now it comes up with another error.
> Error:
> Failed to set program arguments, environment or working directory.
>
> Do you have any ideas on this?
>
Re: Exec error: Launching failed [message #149101 is a reply to message #149051] Sun, 17 July 2005 21:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pbtranchinh.lycos.com

This is the output in console during the build process
************************************************************ **

**** Incremental build of configuration Debug for project Hello TM ****

make -k all
Building file: ../main.cpp
g++ -O0 -g3 -Wall -c -fmessage-length=0 -omain.o ../main.cpp
In file included from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c+ +/3.4.2/backward/iostream.h:31,
from ../main.cpp:1:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c+ +/3.4.2/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X> header
for the <X.h> header for C++ includes, or <iostream> instead of the
deprecated header <iostream.h>. To disable this warning use
-Wno-deprecated.
../main.cpp:8:2: warning: no newline at end of file
Finished building: ../main.cpp

Building target: HelloTM.exe
g++ -o HelloTM.exe main.o
Finished building: HelloTM.exe
Build complete for project Hello TM

**********************************************************
This is the output in the console during the debug process.

"C:\Documents and Settings\Steve\workspace\Hello TM": Invalid argument.
****************
Then it show the dialog box saying:
"Failed to set program arguments, environment or working directory.

I hope you could give me some light on this one. Thanks
Re: Exec error: Launching failed [message #149491 is a reply to message #149101] Sun, 17 July 2005 23:58 Go to previous message
Eclipse UserFriend
Originally posted by: pbtranchinh.lycos.com

I have installed the gdb.exe debugger.
In the debug dialog box, 'run,manage, configurations
Under the environments, and arguments tab I leave it blank
Under the debugger tab,
+ Debugger: Cygwin GDB Debugger
+ Check stop at main...
+ GDB Debugger : C:\gdb\bin\gdb.exe (location of gdb.exe)
+ GDB commnad : blank

Is it the right configuration? I hope these info give you some ideas.
Thanks
Previous Topic:A question re: GUI apps
Next Topic:applicabilityCalculator
Goto Forum:
  


Current Time: Fri Jul 04 03:56:01 EDT 2025

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

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

Back to the top