delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/08/07:30:42

Date: Tue, 8 Jun 1999 11:38:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: George Hicken <bane_462051 AT yahoo DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Undefined String::String(void) problem
In-Reply-To: <7jgp9l$qm2$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.990608113813.4197I-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, 7 Jun 1999, George Hicken wrote:

> > I am attempting to use _String.h.
> > The program compiles okay, but when attempting to link it all the
> > String:: functions I call throw up undefined errors.
> 
> I am not sure if this is related, but ld claims that libgpp.a is not a
> recognised file format.

It probably *is* related, since the String class is in libgpp.a
(AFAIK).

> GNU ld version 2.8.1 (with BFD 2.8.1)
> c:/djgpp/bin/ld.exe: cannot open -lgpp: File format not recognised

This usually means that the linker cannot find libgpp.a.  Make sure
libgpp.a is in your lib subdirectory.  If that doesn't help, add -v to
the compiler switches and post here everything it prints during
compilation and linking.

- Raw text -


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