Date: Wed, 8 Jan 1997 18:18:30 -0600 (CST) From: Andrew Deren To: "Gautam N. Lad" cc: djgpp AT delorie DOT com Subject: Re: DJGPP compiles wrong .EXE filename In-Reply-To: <5auogm$7hn@news.interlog.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Use -o file_name.exe to get what you want. ex. gcc myprog.c -o myprog.exe On 8 Jan 1997, Gautam N. Lad wrote: > Hi, > When I compile my C++ program and link it to the graphics library, > instead of the executable file having the same name as the source > file, it's A.EXE and so is the .OUT file (A.OUT). > > The program works fine, except it keeps doing this. I think it also > happened when I tried to compile a single .C program. > > I am compiling like this in C: > > gcc prog.c > > > > I am compiling like this in C++ > (Note window.cpp contains classes I created): > > gxx tb.cpp window.cpp /djgpp/contrib/grx20/lib/LIBGRX20.A > > Bye! > **************************************************** > * Gautam N. Lad * > *--------------------------------------------------* > * * > * E-Mail : gautam AT interlog DOT com * > * Website : http://www.interlog.com/~gautam * > * * > * OS/2, DOS/Windows, Graphics Gallery, Software, * > * Links, Rayzor Editor/2, POV-Ray, and more. * > **************************************************** >