Newsgroups: comp.os.msdos.djgpp From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann) Subject: Re: Help with C++ library References: <370982e5 DOT 13785014 AT news DOT wanadoo DOT fr> <370ade14 DOT 0 AT newnews DOT widomaker DOT com> <370d0a60 DOT 7158472 AT news DOT wanadoo DOT fr> X-Newsreader: News Xpress 2.01 Date: Wed, 07 Apr 1999 08:42:16 GMT NNTP-Posting-Host: dhcp33-228.uni-bielefeld.de Message-ID: <370b1a69.0@news.uni-bielefeld.de> X-Trace: 7 Apr 1999 10:42:17 +0200, dhcp33-228.uni-bielefeld.de Lines: 37 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <370d0a60 DOT 7158472 AT news DOT wanadoo DOT fr>, Gallicus AT caramail DOT com (Gallicus) wrote: > >One question now is about libgpp.a (the Djgpp version of Gnu lg++). >It has a <_String.h> header and a String class and I can't get it working. >I just want to understand why, because I don't need to use it. > > >TIA >Gallicus. I didn't realize, that you couldn't get it to work. Make sure that libgpp.a is in you lib directory. (I guess it is and you checked that allready, but anyway..) Then write a small example program like: #include <_string.h> int main () { String x; // Note the capital S! } and compile it with: gxx example.cc -O3 -lgpp This is a pecularity with lgpp: You will have to use some optimizations. I don't know exactly why this is happening (it smells a bit buggy to me), but it is. Manni -- ---------------------------------------------------------------------- Manni Heumann Bielefeld, Germany ----------------------------------------------------------------------