www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/27/03:35:22

Date: Sun, 27 Feb 2000 09:43:18 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Eugenio <eugenio AT lps DOT ufrj DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: HELP please
In-Reply-To: <00aa01bf7efa$016fef60$a22fa492@Meyrin.lps.ufrj.br>
Message-ID: <Pine.SUN.3.91.1000227094254.14604B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 24 Feb 2000, Eugenio wrote:

> CMDLINE=gcc  -Wall -v -o2 gpc_eg2.exe pc_eg2.o -lp14io -lcpc40 -lcport
> -lldsp -lsharc -lstdcxx -lm -exceptions

This command line is wrong, it should have been something like this:

    gcc  -Wall -v -O2 -o gpc_eg2.exe pc_eg2.o -lp14io -lcpc40 -lcport
       -lldsp -lsharc -lstdcxx -lm -exceptions

Note the important differences: -O2 (capital O) *and* -o before
gpc_eg2.exe.  The former tells the compiler to produce optimized code,
the latter tells it to put the code in gpc_eg2.exe, the program you
want to produce.

- Raw text -


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