Message-ID: From: "Andris Pavenis" To: "Paul H" , djgpp AT delorie DOT com Date: Tue, 18 May 1999 11:00:35 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: _String.h Error in compiling C++ program In-reply-to: <19990518045020.62062.qmail@hotmail.com> X-mailer: Pegasus Mail for Win32 (v3.11) 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 Seems You have compiled sources without optimization. Compile sources with -O2 (recommended) or -O3 and errors should disappear. Andris On 17 May 99, at 21:50, Paul H wrote: > Hello, > > 2 Things: > > When I compile the following program: > > #include > #include > #include <_String.h> > > int main () { > String abc; > abc = "test"; > cout << abc; > > return 0; > } > > I get the following results with gxx: > > C:\Development\c>gxx -o test.ext test.o > test.o(.text+0x1f):test.cpp: undefined reference to `String::String(void)' > test.o(.text+0x30):test.cpp: undefined reference to `String::operator=(char > cons > t *)'