delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/16/06:20:15

From: Charles Krug <charles AT pentek DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: support for standard C++ String?
Date: Wed, 14 Jan 1998 10:10:18 -0500
Lines: 27
Message-Id: <34BCD55A.B695F0A3@pentek.com>
References: <34BA4E18 DOT 6AB6B224 AT obspm DOT fr> <69i5pl$8hk AT freenet-news DOT carleton DOT ca>
Nntp-Posting-Host: mail.pentek.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire wrote:

> William Gacquer (William DOT Gacquer AT obspm DOT fr) writes:
> > Hi!
> >     I am not able to use the String class (C++). My unix code using the
> > String class
> > is not recognize anymore by the DJGPP compiler (which is older than my
> > linux gcc).
> > Is there any special trick or include to add? Where can I find a
> > compatible String class?
>

Be careful what you ask.  Djgpp comes with two string classes:

The gnu string class, declared in _string.h (note the leading underscore), and
called String (w/ the first letter capitalized)

The standard library string class, declared in string.h (no leading underscore),
and called string (in all lower case letters)

I was working on a project that involved using strings, and it took me about two
weeks to solve all the problems I created by confusing the two string libraries.

--
Charles Krug, Jr.



- Raw text -


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