| delorie.com/archives/browse.cgi | search |
| From: | "Campbell, Rolf [SKY:1U32:EXCH]" <cp1v45 AT NortelNetworks DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: I can't compile with the -O2 switch. |
| Date: | Wed, 25 Aug 1999 09:56:33 -0400 |
| Organization: | Nortel Networks |
| Lines: | 19 |
| Message-ID: | <37C3F610.8B0C9CCC@NortelNetworks.com> |
| References: | <7purvn$j7h$1 AT nclient11-gui DOT server DOT virgin DOT net> |
| NNTP-Posting-Host: | bmerhc00.ca.nortel.com |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) |
| X-Accept-Language: | en |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Anne Hawson wrote:
> I wanted to compile C++ code into an executable with optimisations.
> In this case, it is a tiny program called "keypress.cpp"
> (pasted at the end of this message).
> It compiles fine with -
>
> > gxx -o keypress.exe keypress.cpp
> but complains with -
>
> > gxx -O2 keypress.exe keypress.cpp
The 2nd line should be "gxx -O2 -o keypress.exe keypress.cpp"
--
-Rolf Campbell (39)3-6318
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |