Possibly string only exists in the std namespace; if so you'd have to prefix it with std::.