delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/23/09:23:40

Message-ID: <3770DE3B.57B24320@unn.ac.uk>
Date: Wed, 23 Jun 1999 14:16:43 +0100
From: Mark Collinson <mark DOT collinson AT unn DOT ac DOT uk>
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
Subject: Re: _String.h
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990623154147 DOT 2661A-100000 AT is>
Reply-To: djgpp AT delorie DOT com

Greetings,

> See?  It doesn't say anything about _String.h, it complains about missing
> functions.  And that means that you didn't tell the linker to search some
> of the libraries, or that you don't have those libraries installed.
> 
> I believe that String is in libgpp.a, so try appending -lgpp to the end
> of the compilation command.  If that doesn't work, you will need to
> install the file lgp2811b.zip.

Well, I did what was suggested and appended -lgpp to the end of the
compilation command and I still got the same response. Oh and Yes the
lgp2811b.zip is installed and libgpp.a does exist in the C:\djgpp\lib
directory.

C:\mark\code>gxx -Wall -o strtest.exe strtest.cpp -lgpp
c:/djgpp/tmp\cccqeuch(.text+0x1b):strtest.cpp: undefined reference to
`String::String(void)'
c:/djgpp/tmp\cccqeuch(.text+0x29):strtest.cpp: undefined reference to
`String::~String(void)'
c:/djgpp/tmp\cccqeuch(.text+0x53):strtest.cpp: undefined reference to
`String::~String(void)'

Does anyone know what is going wrong here?

Cheers,
Mark

- Raw text -


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