delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/11/02/16:11:41

From: wrichard AT direct DOT ca (Wade Richards)
Subject: Re: Default linker output filename
2 Nov 1996 16:11:41 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <1.5.4.32.19961102233717.006998c4.cygnus.gnu-win32@mail.direct.ca>
Mime-Version: 1.0
X-Sender: wrichard AT mail DOT direct DOT ca
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Original-To: Geoffrey Noer <noer AT cygnus DOT com>
Original-Cc: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

At 15:17 30/10/96 -0800, you wrote:
}We are thinking about changing the default linker output filename from
}a.out to aout.exe.  Can anyone think of any bad consequences that might
}result?
}
}(My gut feeling is that a.out.exe might be problematic so I lean towards
}aout.exe).

I would suggest a.out.exe.  In my opinion, the only reason to leave it
anything like the UNIX standard, a.out, is for compatability.  In this case,
close is not close enough.  If some program (say, a "configure" script)
compilies code and expects to run "a.out", it won't find "aout.exe", no
matter how close you think the name is.  On the other hand, if there is a
file called "a.out.exe", and your script executes "a.out", it will work.

All of the win32 platforms support long file names.  If you can run the
cygnus tools at all, then you can correctly produce a file named
"a.out.exe", and you can run it by typing "a.out".

As an aside, some people (the NT users) may be wondering why to change it at
all.  If you have an executable called "a.out", then NT will be able to run
it, but Win95 won't.  Both NT and Win95 won't be able to find it on the
cmd.exe (or command.com) search path, since they only look for files with
..bat, .com, .exe, or .cmd extensions.

        --- Wade
----------
Wade Richards    -= WRichard AT Direct DOT CA =- 
"Never attribute to malice what can adequately be explained by stupidity."

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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