delorie.com/archives/browse.cgi | search |
From: | "gunno" <gunno AT no-spam DOT telia DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <00c401bfdde0$74f9bd40$bada36cb AT mpdywdzn> <fIj55.14943$Za1 DOT 235453 AT newsc DOT telia DOT net> <200006252030 DOT XAA29057 AT mailgw1 DOT netvision DOT net DOT il> |
Subject: | SV: SV: Request for assistance from real IT newbie |
Lines: | 52 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
Message-ID: | <AcL55.15151$Za1.239496@newsc.telia.net> |
Date: | Mon, 26 Jun 2000 16:06:56 GMT |
NNTP-Posting-Host: | 213.64.22.80 |
X-Complaints-To: | abuse AT telia DOT com |
X-Trace: | newsc.telia.net 962035616 213.64.22.80 (Mon, 26 Jun 2000 18:06:56 MET DST) |
NNTP-Posting-Date: | Mon, 26 Jun 2000 18:06:56 MET DST |
Organization: | Telia Internet |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id QAB07360 |
Reply-To: | djgpp AT delorie DOT com |
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> skrev i meddelandet news:200006252030 DOT XAA29057 AT mailgw1 DOT netvision DOT net DOT il... > > From: "gunno" <gunno AT no-spam DOT telia DOT com> > > Newsgroups: comp.os.msdos.djgpp > > Date: Sun, 25 Jun 2000 08:49:15 GMT > > > > > "CMDLINE=gcc -o hello hello.c" > > > > Looks fine with the exception that you have to give the executable > > file the extension '.exe' if you want it to be executable. It's DOS > > that's requires that extension to understand. > > This isn't true: when you say "gcc -o hello hello.c", the compiler > creates *both* `hello' and `hello.exe'. Try it. Did so, and learned something new (already knew about the a.out a.exe pair). Thanks ! I also have done some digging and found: = "This has also one side effect. If you call gcc like = = gcc -o foo foo.o = = the file foo (without the exe suffix) is created but it IS a = '.exe' file. That means to prevent misunderstandings call gcc = at any time like = = gcc -o foo.exe foo.o " And maybe that is what I recalled. The quoted text is from a "readme.djg" about the port of binutils 2.8.1 and is about what happens if one changes the 'specs' file as the author Robert Hoehne suggests. When I first got djgpp I had to read through many documents like this, in the hope to find some clue somewhere of how to get it to work. These documents are written for experienced and advanced djgpp users. Their impact on beginners is rather unpredictable :-) Still think it's a good habit to use a *.exe name with the -o option. But the correct reason should be: to avoid creating unwanted COFF files And still warmly recommends the -Wall option. Especially to newcomers arriving from the sheltered Java environment. gunno
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |