Date: Wed, 23 Jun 1999 15:44:54 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Mark Collinson cc: djgpp AT delorie DOT com Subject: Re: _String.h In-Reply-To: <3770B840.9F1DF77@unn.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 23 Jun 1999, Mark Collinson wrote: > I am having a spot of trouble with the _String.h file. The C++ compiler > cannot find it. That's not what the error message says. > C:\mark\code>gxx -Wall -o strtest.exe strtest.cpp > c:/djgpp/tmp\cccygxwf(.text+0x1b):strtest.cpp: undefined reference to > `String::String(void)' 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.