Mail Archives: djgpp/1996/02/04/03:21:29
On Thu, 1 Feb 1996, orlo wrote:
> I was under the impression (from reading the FAQ), that going to DOS
> from Win95; I should type from c:\djgpp\bin the following: "gcc
> filename.c" and "filename.exe" would be compiled/created. This does not
> happen. Could someone PLEASE write me a short e-mail and tell me how to
> use the ez-gcc compiler to create an .exe from a .c file?
The default output file is a.out (because of the Unix legacy of GNU tools
which are used by DJGPP). If you want the output to go to `filename.exe',
you should do this:
gcc -o filename filename.c
coff2exe filename
This is for DJGPP v1.x. In DJGPP v2.0, you could say simply
gcc -o filename.exe filename.c
But DON'T try the last method in DJGPP v1.x, or you will get into trouble!
In fact, the FAQ specifically warns about this in section 9.2.
- Raw text -