error: 'string' in namespace 'std' does not name a type

Hi
I am getting the following error message when I try to compile a file:

error: 'string' in namespace 'std' does not name a type

the compiler marks the following line:

std::string GetErrorText(void) const;

I included
#include <vector>
#include <string.h>
#include <assert.h>

I found several solutions in the web but no one helped me. does any one can help me?

thx
tommy
#include <string.h> <string.h> (aka <cstring>) is a header for c-string manipulation.
you need to #include <string> (without .h)
that worked!!! Great!!! Thanks a lot

thx tommy
Topic archived. No new replies allowed.