Date: Mon, 11 Aug 1997 09:56:57 -0400 (EDT) From: "Art S. Kagel" To: bill oliveri Cc: djgpp AT delorie DOT com Subject: Re: DJGPP renames source when creating exe In-Reply-To: <01bca4fd$c430b9a0$4215d826@boliveri> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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