Mail Archives: djgpp/1999/04/07/05:22:23
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
----------------------------------------------------------------------
- Raw text -