delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/19/09:02:09

From: pavenis AT lanet DOT lv
Message-ID: <B0000098623@stargate.astr.lu.lv>
To: "Rob Kramer" <robk AT cyberway DOT com DOT sg>, djgpp AT delorie DOT com
Date: Thu, 19 Aug 1999 12:24:09 +0300
MIME-Version: 1.0
Subject: Re: G++ 2.95 <string> include error..
In-reply-to: <199908180912.RAA01126@eastgate.cyberway.com.sg>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 18 Aug 99, at 17:11, Rob Kramer wrote:

> Hello all,
> 
> After installing gcc295b and gpp295b I noticed that I can't include 'string'
> anymore. So 'test.cc':
> 
> ---------------------
> #include <iostream>
> #include <string>
> 
> void main()
> {
>         string          s = "blabla";
>         cout << "test " << s << endl;
> }
> ---------------------
> 
> compiled with 'gxx test.cc', will produce an error:
> 
> In file included from c:/djgpp/lang/cxx/alloc.h:21,
>                  from c:/djgpp/lang/cxx/std/bastring.h:39,
>                  from c:/djgpp/lang/cxx/string:6,
>                  from test.cc:2:
> c:/djgpp/lang/cxx/stl_alloc.h:742: invalid member template declaration
> c:/djgpp/lang/cxx/stl_alloc.h:780: invalid member template declaration
> c:/djgpp/lang/cxx/stl_alloc.h:817: invalid member template declaration
> c:/djgpp/lang/cxx/stl_alloc.h:858: invalid member template declaration
> c:/djgpp/lang/cxx/stl_alloc.h:961: empty component declaration
> c:/djgpp/lang/cxx/stl_alloc.h:961: parse error before `<'

Compiles without any errors for me (with gcc-2.95 of course). Which 
was earlier version of gcc. Did You remove it before installing gcc-
2.95? 

> I don't see what I'm doing wrong here, does this have anything to do with
> -remap? Can't I say <string> anymore?

-remap is intended to remap names of include files on systems that 
have some file naming limitations (like MS-DOS). It should not harm 
here. 

> 
> Besides that, the readme.djgpp mentions that I'd better install djdev203,
> but I thought that was still developer-alpha? (anyway, it seems well-hidden,
> can't find it *anywhere* :)

That means it's recommended to install it when djdev203 will be 
released. Currently use v2.02. 

Andris

- Raw text -


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