Use std::string instead of string (error fix, compiles now)