K
kramer31
Hi. I'm trying to use the STL string class (new to STL), but not
having much luck. FYI, I'm using g++ on Linux 2.6. I included the
header as instructed:
#include <string>
But I get the error message:
error: `string' does not name a type
I looked at my '/usr/include' directory and found no file called
'string'. The file 'string.h' of course points to the basic string
functions.
Am I missing the STL headers?
If so why didn't the compiler yell at me that it couldn't find the
file?
Or did I jsut do something stupid?
Thanks in advance, guys.
having much luck. FYI, I'm using g++ on Linux 2.6. I included the
header as instructed:
#include <string>
But I get the error message:
error: `string' does not name a type
I looked at my '/usr/include' directory and found no file called
'string'. The file 'string.h' of course points to the basic string
functions.
Am I missing the STL headers?
If so why didn't the compiler yell at me that it couldn't find the
file?
Or did I jsut do something stupid?
Thanks in advance, guys.