Mail Archives: djgpp/1996/05/04/12:10:23
R.L.S. Smith (rlss2 AT thor DOT cam DOT ac DOT uk) wrote:
: I have installed DJGPP V2 on my computer but when I try to compile
: something I get an error message: stubify.exe hello.exe not COFF. The
: compilation works fine up until this point. The command I used was:
: gcc -v -o hello.exe hello.c
Try:
gcc -v hello.c -o hello
gcc normally outputs COFF format, which stubify adds executable stub to
that loads a COFF executable to. gdb expects the COFF file, so it is
happy. MS-DOS expects a .EXE format file and coughs on the COFF. The
above line genrates a COFF file in hello. and EXE executable in
hello.exe. "gdb hello" debugs the COFF in "hello." and "hello" at the
MS-DOS prompt runs "hello.exe" and everyone is happy.
--
============================================
Without my guitar, I am a poet without arms.
- Michael Bloomfield
============================================
- Raw text -