Mail Archives: djgpp/1996/05/05/07:38:48
On 3 May 1996, Jeffrey Taylor wrote:
> : 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.
Please guys and gals, before you post your reply, take a moment to test
it and be sure that you don't post incorrect info, especially when the
question is from an obvious new user of DJGPP.
The above reply is INCORRECT! In DJGPP v2.0, when you say
gcc -o prog prog.c
gcc generates *both* `prog' and `prog.exe'; `prog' is a COFF file and
`prog.exe' is a DOS executable. If you tell "-o prog.exe", only .exe is
generated. (This is different from v1.x, where producing .exe was always
a separate step.)
- Raw text -