Yes, I definitely do! That's what happens when you Cut and Paste without paying attention! :-) Chris ----- Original Message ----- From: <llewelly@xxxxxxxxxxxx> To: "Chris Wolstenholme" <chris@xxxxxxxxxxxxxxxxxxxx> Cc: <gcc-help@xxxxxxxxxxx> Sent: Saturday, June 05, 2004 2:28 PM Subject: Re: string class > "Chris Wolstenholme" <chris@xxxxxxxxxxxxxxxxxxxx> writes: > > > You need to specify the namespace for the string (which happens to be std). > > > > There are two options: > > > > include<string.h> > > You mean '#include<string>' , without the '.h' > > > > > int main() > > { > > std::string s1("hello world"); > > > > return 0; > > } > [snip]