简体   繁体   中英

LNK2038 error VC++ 2013

I'm currently trying to get a TMX-Parser hooked into my game, and after doing the appropriate hooking into, I get the following linker errors:

Error 1 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in base64.obj tinyxml.lib(tinyxml.obj)

Error 5 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in base64.obj tinyxml.lib(tinyxmlparser.obj)

Error 7 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in base64.obj tinyxml.lib(tinyxmlerror.obj)

Error 4 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in base64.obj tinyxml.lib(tinyxml.obj)

Error 6 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in base64.obj tinyxml.lib(tinyxmlparser.obj)

Error 8 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in base64.obj tinyxml.lib(tinyxmlerror.obj)

I've done some searching and can't figure out how to fix these, if anyone could give me some assistance it would be greatly appreciated.

According to the errors:
MDd_DynamicDebug -> MDd Multi-Theaded DLL Debug
MD_DynamicDebug -> MD Multi-Theaded DLL Release

Your project and the library are compiled with different configuration (some types have distinct memory layout in debug and release, for debug checks and other tricks).

Other problem is the value of macro _ITERATOR_DEBUG_LEVEL in one compilation is 0 and in the other is 2 (one without debugging checks in debug other with, probably release is without and debug is with the check). This is related with the previous problem (types with members for checks in debug), trying to be used as the member do'nt exists.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM