Perhaps I am missing something obvious, since I searched the Internet for a long time, but could not find a solution to the following problem:
I am using Eclipse Kepler SP2 (Build id: 20140224-0627) with CDT and MinGW as a compiler. Debugging C code with gdb has worked until today (at least I noticed a problem today). Now I get the following error message when I want to run a program in the debugger:
Error in final launch sequence
Failed to execute MI command:
-file-exec-and-symbols C:/[...]/Debug/test.exe
Error message from debugger back end:
"C:\[...]\Debug\test.exe": not in executable format: File format not recognized
The program works beautifully, and so I thought that maybe I had some settings. But when I tried to debug the old program, everything worked until I tried the old program -> the same problem. If I ask the C-wizard to create a new ANSI C Hello World application with MinGW, the same problem occurs.
The compilation commands that were used,
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\test.o" "..\\src\\test.c"
gcc -o test.exe "src\\test.o"
I did not update my MinGW in between, but updated Eclipse.
Do you have pointers on where to look for the problem?
Change . I just checked the binary type: my old projects are all [x86 / le], but the compiled ones are [amd64 / le]. It should be a trace .... Will update the wiring in accordance with progress.
Edit2: argh perl , MINGW_HOME BUILD SYSTEM c:\strawberry\c, . c:\MinGW .
. , .