This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: stl bug with egcs-1.0.3 release ??
- To: ludovic dot bailly at roco dot net
- Subject: Re: stl bug with egcs-1.0.3 release ??
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 28 Aug 1998 23:25:47 +0200
- CC: egcs-bugs at cygnus dot com
- References: <35E6A325.658C0028@roco.net>
> 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