undefined symbol string

I started using the c++ program. But when I run the program,
the error message " undefined symbol 'string' comes.
kindly guide me in this regard.
Last edited on
Cannot guide you with the program's source code.
Can you show us the code?

What compiler are you using?
Be sure to

#include <string>

and when you use string, use it as

std::string
Topic archived. No new replies allowed.