delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/22/15:43:39

From: pavenis AT lanet DOT lv
To: Heavy <heavier AT hotmail DOT com>, djgpp AT delorie DOT com
Date: Thu, 22 Jun 2000 21:43:02 +0200
MIME-Version: 1.0
Subject: Re: Problems with String class
Message-ID: <39528866.20957.90568E@localhost>
In-reply-to: <39525336.ED6CC8C5@hotmail.com>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 22 Jun 2000, at 18:02, Heavy wrote:

> Hi, I'm having a problem using the c++ string library, specifically, the
> String class in _string.h.  When I compile my code (with _string.h
> #included) it seems to compile fine until the link stage, when I get
> about a million "undefined reference to String::someMethod".
> 
> I have been compiling properly (I think) because all other c++ stuff
> seems to link fine (i.e. iostream.h, fstream.h, etc) but for some
> reason, the linker can't find the String implemenation. I am using
> gxx.exe, so I don't think that's the problem, is there some specific
> library I need to link with my program? Or is there no implementation at
> all for the String class? Or is there some other problem I'm overlooking
> entirely...
> 

Known problem with libg++. 
Try compiling with optimizations:
	gcc -O2 ...

Andris

- Raw text -


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