From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Fri, 13 Feb 1998 09:51:09 +0100 Subject: Re: <_string.h> error Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk >#include <_string.h> >int mani(void) >{ > String str; > return 0; >} > >now compiles , but when i attempt to build the project, it gives me an >garbd.cc(48) Error: undefined reference to 'String::String(void)' >error message (and a similar one for the destructor). This error comes from the linker. It means you didn't link the c++ libraries. Use gxx to link c++ files. It handles the libraries automatically. ciao Giacomo