Commmon Problem 1:
error C2220: warning treated as error - no 'object' file generatedCommmon Problem 2:
warning C4996: 'wcstombs' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdlib.h(562) : see declaration of 'wcstombs'
Message: 'This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
Solution -
#pragma warning ( disable : 4996 )
error C2440: 'initializing' : cannot convert from 'const char *' to 'char *'Common Problem 3
The code was :
char *pTxdGroupXml = strstr(name, "_resources.xml");
Solution -
Change the code to :
char *pTxdGroupXml = (char*) strstr(name, "_resources.xml");
error C3861: '_assert': identifier not foundCommon Problem 4
Solution
#define _assert(exp, fileName, lineNumber) assert(exp)
error LNK2005: __configthreadlocale already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMTD.lib
Solution
ProjectSettings - > Linker - > Input -> Ignore specific Library : LIBCMTD.lib
Hope this post helps when you are down and fighting to build a mamoth Legacy Code.
- Reza
No comments:
Post a Comment