www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/11/13:52:40

From: pavenis AT lanet DOT lv
To: DJ Delorie <dj AT delorie DOT com>, djgpp AT delorie DOT com
Date: Thu, 11 May 2000 19:44:49 +0200
MIME-Version: 1.0
Subject: Re: standard libraries
Message-ID: <391B0DB1.15906.236500@localhost>
In-reply-to: <200005102251.SAA22665@envy.delorie.com>
References: <3919f44a DOT 104678014 AT news DOT latech DOT edu> (jdo005 AT spamblockerbeta DOT latech DOT edu)
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 10 May 2000, at 18:51, DJ Delorie wrote:

> 
> > My current problem is ...
> 
> Because DOS doesn't have case-sensitive file systems, you can't have
> (for example) string.h and String.h at the same time.  So, what we did
> was rename the ones with upper case to have an underscore, like
> _String.h.  And the C++ headers are in lang/cxx/ (_String.h is in
> lgp2952b.zip), not include/.

Try with gcc-2.95.2:

	echo '#include <String.h>' | gcc -x c++ -E - | less
       echo '#include <string.h>' | gcc -x c++ -E - | less

and in first case You'll get lang/cxx/_String.h and in second 
include/string.h (unless there is some installation problem)
as filename translation rules are specified in files with name 
header.gcc (used when command line option -remap is specified
for cpp.exe)

However I recommend use <string> instead of libg++ String class

> 
> Note, however, that the current gcc also allows for <string> for the
> C++ string class.
> 
> > I've been lurking here a while and you all seem like a great bunch
> > of guys & gals.

Andris

- Raw text -


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