www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/18/13:45:29

Message-Id: <199908180912.RAA01126@eastgate.cyberway.com.sg>
From: "Rob Kramer" <robk AT cyberway DOT com DOT sg>
To: djgpp AT delorie DOT com
Date: Wed, 18 Aug 1999 17:11:15 +0800
MIME-Version: 1.0
Subject: G++ 2.95 <string> include error..
X-mailer: Pegasus Mail for Win32 (v3.01b)
Reply-To: djgpp AT delorie DOT com

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 `<'

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

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* :)

Thanks!

        Rob Kramer
        robk AT cyberway DOT com DOT sg


- Raw text -


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