Mail Archives: djgpp/1997/08/11/11:36:32
On 9 Aug 1997, bill oliveri wrote:
> Hello, I'm new to DJGPP and have looked over the FAQs but could not find an
> answer. When I compile my source DJGPP changes the source name to A.exe.
> Is this normal or should I be doing something else in my compulation?
>
> Example:
>
> gnn chncase.c
>
> Creates:
>
> A.exe
>
You did not tell gcc what to call the executable so it created the
default executable a.exe. Just add a -o chncase.exe to the gcc
command and voila!
gcc -o chncase.exe chncase.c
Creates:
chncase.exe
Gcc evolved from a UNIX background. The default executable created by
C compilers on UNIX is a.out. This is changed to a.exe for DJGPP due
to DOS naming requirements.
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -