www.delorie.com/archives/browse.cgi | search |
From: | G DOT DegliEsposti AT ads DOT it |
To: | djgpp AT delorie DOT com |
Message-ID: | <C12565AA.00306F4C.00@vega.ads.it> |
Date: | Fri, 13 Feb 1998 09:51:09 +0100 |
Subject: | Re: <_string.h> error |
Mime-Version: | 1.0 |
>#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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |