From: robk AT cyberway DOT com DOT sg (Rob Kramer) Newsgroups: comp.os.msdos.djgpp Subject: Re: G++ 2.95 include error.. Date: Fri, 20 Aug 1999 12:42:44 +0800 Message-ID: References: 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