Mail Archives: djgpp/1998/02/12/15:48:43
Andrew Crabtree wrote:
>
> A. Sinan Unur wrote in message <34E2F36B DOT 37071F81 AT cornell DOT edu>...
> > AFAIK
> >_string.h (i.e. String.h) is for the GNU String class, as opposed to
> >string which is supposed to be the C++ standard header.
> I don't know the exact differences between the two header files, but you do
> not get a string
> class from <string>. It is only defined in <_string.h> (String.h). If you
> use <string> the program still won't compile. At least in my setup, which
> is probably the worst one to base things off of :)
You are right, this is one of the examples what happens when you
answer questions from the back of (my ;-) mind.
It works if you include <strclass.h>, which in turn includes
<_string.h> and adds a typedef. I think strclass.h is better than
{S|_s}tring.h, because it has only lower case letters and should be
slightly more portable.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -