delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/15:48:43

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: <string.h>
Date: Thu, 12 Feb 1998 21:42:22 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 31
Message-ID: <34E35EAE.7018E4F@LSTM.Ruhr-UNI-Bochum.De>
References: <3 DOT 0 DOT 5 DOT 32 DOT 19980211115618 DOT 007ecc60 AT mail DOT kudos DOT net> <34E22910 DOT F245ED05 AT cornell DOT edu> <34E2DB56 DOT 5515BABD AT LSTM DOT Ruhr-UNI-Bochum DOT De> <34E2F36B DOT 37071F81 AT cornell DOT edu> <6bvf9e$65f$1 AT rosenews DOT rose DOT hp DOT com>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019