This question might have been asked and answered but my question is a little bit different. I am converting our HLA RTI project which was developed in VS2003 to VS2010. I am getting these two errors at the moment(cos I don't know any further errors will arise or not. This is purely c++ project. I do not know from where this error is coming, when compiling it gives these two errors from utility file of VS.
1. Error 7 error C2440: 'initializing' : cannot convert from 'const char [2]' to 'char *' c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163(line #) 1(col #)
2. Error 8 error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility 163(line #) 1(col #)
This error usually arises when you are trying to assign constant character array to non-const pointer, which was allowed sone time ago but not anymore. WHere in your code this happens is impossible to see without code itself.
Sorry for contacting late. If I could attach pic u will see there are only two errors without showing any line number. I have searched this and many results give different options but I can not figure out. Can u give me example of how this error can be removed in new ver of c++.
Check any place where std::pair or std::map is used. Somewhre it looks like you are trying to insert string literal in something which expects char pointer. Also check if your VS installation is correct.