This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [mingw32] [RFC] changing gcc default output executable name (a.exenow)

I think (a.exe) is expected to those who have experience with gcc and
are trying it out on windows. At least that's how it was for me. 

gcc (imho) is rarely used outside of a makefile, except for testing

Also, how will it handle and existing *.exe file of the same name? Given
your example, will it write over any existing foo1.exe file? I once  worked
on an email program once, and I had a few programs I wrote just for
developing the mail program. They would make and undo changes to the
mailbox file to allow me to test and retest ways my mail program handled
it. I wouldn't want to have a foo.exe file overwritten accidentally due
to an oversight on my part. (i.e. forgetting the -o <name> during a
manual compile)

I don't know whether I would be for or against this proposed changed. I
probably wouldn't notice, as I consider it unthinkable to attempt to produce
an executable without the '-o' flag.

In summary, I don't think many people would notice one way or another,
but I think there may be a (very small) problem with overwriting
existing files.

I think I've confused myself now, so I'll just shut-up. :-)


On Wed, 12 Jan 2000 23:07:40 -0600 (CST)
Mumit Khan <khan@NanoTech.Wisc.EDU> wrote:

Are people happy/ok with the fact that gcc on win32 produces a program
called a.exe by default? For example,
  $ gcc foo.c

will create a.exe. This is of course not really expected on DOS/Windows
world, and causes all sorts of confusion. Also, this is simply lame even
on Unix, and this historical bit should've disappeared long ago, but
won't since it's a convention now.

I'd like to move to creating <name>.exe, where <name> is the first file
on the list you provided to gcc.
  $ gcc foo1.c foo2.c foo3.c

will produce foo1.exe, not a.exe as it does now.

Is this something we should change?? 


Toys, Books, Software. Save $10 on any order of $25 or more at Hurry, offer expires 1/15/00.

-- Easily schedule meetings and events using the group calendar!

The fact that no one understands you doesn't mean you're an artist.
Brent Williams / GDNO 1-800-281-8396 ext 7390
PGP Key --

Want to unsubscribe from this list?
Send a message to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]