View Full Version : reference to 'string' is ambiguous

12-29-2010, 09:41 PM
getting the following errors when trying to use the "string" type in an Irrlicht scene (similar to your example):

reference to 'string' is ambiguous

candidates are: template<class T, class TAlloc> class irr::core::string

typedef struct std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::string

Is there an alternate type I should use? All I am trying to do is get a string for the base path to load the scene:

string strBasePath = GetBaseAppPath();

12-29-2010, 09:52 PM
Looks like changing to this fixed it:

std::string strBasePath = GetBaseAppPath();