stl bug with egcs-1.0.3 release ??

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Fri Aug 28 14:25:00 GMT 1998


> I try to use egcs with stl but I can't use string.
> Look this :
> #include <stdlib.h>
> #include <stdio.h>
> #include <string>
> 
> using namespace std;
> 
> void main() {
>  string str;
> 
>  str = "foo";
> 
>  printf("%d\n", str.length);

I'm sure you meant 'str.length()' here instead.

Martin



More information about the Gcc-bugs mailing list