delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/11/11:36:32

Date: Mon, 11 Aug 1997 09:56:57 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: bill oliveri <wuji AT nivets DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: DJGPP renames source when creating exe
In-Reply-To: <01bca4fd$c430b9a0$4215d826@boliveri>
Message-Id: <Pine.D-G.3.91.970811092204.3813B-100000@dg1>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019