Help! C program Debug error "Program is not a recognized executable." [message #696000] |
Wed, 13 July 2011 03:32 |
Will Khan Messages: 4 Registered: July 2011 |
Junior Member |
|
|
Thanks in advance to anyone who can offer help!
My goal is to make a simple C program, like Hello World in C in eclipse Indigo. I've used visual studio in the past, but I'm new in Eclipse, and I'm generally not a bad learner. I've read in some documentation somewhere that eclipse CDT may not come with a debugger - this not 100% clear to me if I need to download something else ("The CDT doesn't include its internal debugger, but it offers a front end to GNU GDB debugger, which must be available locally.") -see bottom of this post to see what I did install.
I am running eclipse Indigo on a Mac (OS 10.6).
I have installed the CDK toolchain, among other software (see bottom of post)
With some experimenting, I got my program to build and run fine. But, when I try to run the debugger, I get the unhelpful message: "Program is not a recognized executable.". I made sure my launch configuration is pointing at the new output file created in the release and debug directories respectively. Interestingly enough, when I click "Search Project", everything is blank - there are no Binaries in the selection window when it asks 'Choose Program to Run'. This is the same situation for both the Debug and Release launch configurations.
Some more details:
I built both perspectives (Release & Debug). Both builds created what looks like to me, an output file. The thing is that I can successfully run the output, but not "debug" my code.
My current toolchain (for both debug and release builds) is Cross GCC and my current builder is GNU Makebuilder.
I have, as an option for the toolchain to use: Cross GCC, Cygwin GCC, Linux GCC, MacOS GCC, Microsoft Visual C++, MinGW GCC, and Solaris GCC.
I have, as options for my builder to use: CDT Internal Builder, Gnu Make Builder, and org.eclipse.linuxtools.cdt.autotools.core.toolchain.builder.
I've tried some different combinations of the toolchain and builder, but with the same result. Is there something else I should download or run? Any suggestions? This is driving me nuts! I can give more configuration details if requested. Here's all the eclipse software that I installed thus far.
Thanks for reading my post!
Will
software that I installed in Eclipse Indigo C/C++:
C/C++ Development Tools 8.0.0.201106081058 org.eclipse.cdt.feature.group Eclipse CDT
C/C++ Development Tools SDK 8.0.0.201106081058 org.eclipse.cdt.sdk.feature.group Eclipse CDT
C/C++ GNU Toolchain Debug Support 7.1.0.201106081058 org.eclipse.cdt.gnu.debug.feature.group Eclipse CDT
C/C++ Library API Documentation Hover Help (Incubation) 0.3.0.201106060936 org.eclipse.linuxtools.cdt.libhover.feature.group Eclipse Linux Tools
Eclipse Debugger for C/C++ 2.0.0.201106081058 org.eclipse.cdt.debug.edc.feature.group Eclipse CDT
Eclipse IDE for C/C++ Developers 1.4.0.20110615-0550 epp.package.cpp null
[Updated on: Wed, 13 July 2011 03:35] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02825 seconds