Newsgroups: comp.os.msdos.djgpp From: manni AT hotbot DOT com (Manni Heumann) Subject: Re: Undefined reference? References: <36f06f5e DOT 590365630 AT nntp DOT rz DOT uni-karlsruhe DOT de> X-Newsreader: News Xpress 2.01 Date: Thu, 18 Mar 1999 08:33:21 GMT NNTP-Posting-Host: dhcp33-228.uni-bielefeld.de Message-ID: <36f0ba50.0@news.uni-bielefeld.de> X-Trace: 18 Mar 1999 09:33:20 +0200, dhcp33-228.uni-bielefeld.de Lines: 33 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <36f06f5e DOT 590365630 AT nntp DOT rz DOT uni-karlsruhe DOT de>, henrypijames AT mailcity DOT com (Henry 'Pi' James) wrote: >Hi! > >As a DJGPP beginner , I use RHIDE to somehow test around. Soon I came >to a problem. I wrote the following codes. > >#include >int main(void) { > String str; > str = "123"; > str += '4'; > str += "567"; > return 0; >} > You are trying to use the GNU String class (note the capital S). This is included in libgpp, which is deprecated. This class is not defined in the standard and it is not portable. Better use the standard string class (note the lowercase s) by including (note the missing ".h"). You can find documentation for this class in any book on standard C++ (e.g. Stroustrup's "The C++ Programming language", 3rd ed.). Or on the web (e.g. http://www.dinkumware.com/refcpp.html). ---------------------------------------------------------------------- Manni Heumann Bielefeld, Germany Spammers use reply-address, all others use: mheumann AT post DOT uni-bielefeld DOT de ----------------------------------------------------------------------