delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/06:04:58

Date: Tue, 17 Mar 1998 11:14:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: G DOT DegliEsposti AT ads DOT it
cc: djgpp AT delorie DOT com
Subject: Re: undefined reference to...
In-Reply-To: <C12565CA.002E6403.00@vega.ads.it>
Message-ID: <Pine.SUN.3.91.980317111308.18101A-100000@is>
MIME-Version: 1.0

On Tue, 17 Mar 1998 G DOT DegliEsposti AT ads DOT it wrote:

> gcc [compiler options] [files to compile] [linker options]
> 
> -o is a compiler options, put it before the .cc files.

This is incorrect.  "-o prog" may be put anywhere on the GCC command 
line.  The only order GCC cares about is the order of the input (i.e. 
source, object and library) files that are submitted to it.

- Raw text -


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