Mail Archives: djgpp/1998/01/14/10:46:57
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 -