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

From: robk AT cyberway DOT com DOT sg (Rob Kramer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: G++ 2.95 <string> include error..
Date: Fri, 20 Aug 1999 12:42:44 +0800
Message-ID: <MPG.122745d32327bc50989687@news.cyberway.com.sg>
References: <B0000098623 AT stargate DOT astr DOT lu DOT lv>
Organization: Infologic Pte Ltd
X-Newsreader: Anawave Gravity v2.00
NNTP-Posting-Host: 203.116.145.140
Lines: 27
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> > 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? 

The problem was that I compiled with 'gxx', which seems to be missing in 
2.95. I was actually using gxx.exe from 2.8.1, something which I could 
have found out in 2 seconds with 'gxx -v' :)

'gpp test.cc' works fine!

Cheers,

	Rob Kramer
	robk AT cyberway DOT com DOT sg

- Raw text -


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