delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/27/06:35:08

Date: Mon, 27 May 1996 13:21:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Kaspar Landsberg <kl AT kl DOT in-berlin DOT de>
Cc: djgpp AT delorie DOT com
Subject: Re: gcc cannot link C++ programs w/o errors
In-Reply-To: <69gjJ0Y$hjB@kl.in-berlin.de>
Message-Id: <Pine.SUN.3.91.960527131710.9922C-100000@is>
Mime-Version: 1.0

On 27 May 1996, Kaspar Landsberg wrote:

> i'm not able to {compile,link} any C++ program. It seems that DJGPP is  
> missing something... here's what i get..
> 
> 1. gcc -lgpp -v -o prog prog.cc

You put the library (-lgpp) in the wrong position on the command line: it 
should be the last argument.  Please read section 8.7 of the DJGPP FAQ list 
(available as v2/faq200b.zip from the same place you get DJGPP).  It 
tells you more about how to link C++ programs, so you won't have similar 
problems in the future.  I'd also advise to use gxx rather than gcc when 
linking C++ programs (also explained in that section of the FAQ).

- Raw text -


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