delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/23/07:14:14

Date: Sun, 23 Mar 1997 15:03:26 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: zilym AT imap1 DOT asu DOT edu
cc: djgpp AT delorie DOT com
Subject: Re: gxx -c file.cpp prints out excess crap.
In-Reply-To: <5h2vhn$h62@news.asu.edu>
Message-ID: <Pine.SUN.3.91.970323150055.29590V-100000@is>
MIME-Version: 1.0

On 23 Mar 1997 zilym AT imap1 DOT asu DOT edu wrote:

> 	On my Linux box, running g++ -c myfile.cpp compiles the file 
> without printing any messages (as long as myfile.cpp is correct). But on 
> DOS/DJGPP, running gxx -c myfile.cpp always prints out:
> 
> gcc.exe: -lgpp: linker input file unused since linking not done

gxx is NOT a DOS port of g++; it's an entirely different program.

> 	How do I get gxx/gcc to shut up?

Simple: don't use gxx to compile, only to link.  Use gcc to compile C++ 
programs.  gxx just calls gcc with additional -lblabla parameters (see 
above); these aren't needed when compiling, only when linking.

- Raw text -


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