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