Mail Archives: djgpp/1999/08/20/02:19:34
> > 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 -