www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/24/05:25:11

Date: Mon, 24 May 1999 12:22:12 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Vladimir Mosgalin <mosgalin AT school DOT ioffe DOT rssi DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: Cannot link C++ program
In-Reply-To: <199905240815.MAA15009@ape.school.ioffe.rssi.ru>
Message-ID: <Pine.SUN.3.91.990524121822.14456U-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 24 May 1999, Vladimir Mosgalin wrote:

> "gcc  test.o -lgpp -lstdcxx -O"
> or "gxx  test.o -lgpp -lstdcxx -O" doesn't work.

Perhaps because the linker doesn't find the libraries?  Is there some 
message about -lstdcxx not being found buried among the other errors?

Another possibility is that you have a stale version of libstdcxx.a, 
where iostream classes are not included.  You didn't say what version are 
you using, so I cannot be sure if that's the case.

If you cannot figure it out, please post here the complete output of the 
compiler, and add -v to the command line when you produce that output.
(In general, it is a good idea to post the messages right when you first 
report the problem, since it is next to impossible to help you without 
seeing the exact error messages.)

- Raw text -


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