This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: stl bug with egcs-1.0.3 release ??


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]