error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj

前端 未结 20 1113
耶瑟儿~
耶瑟儿~ 2020-11-29 20:36

I have read a lot of solutions to my problem but none helped. I tried clean, rebuild. Reinstalled visual 2010 and change from professional to ultimate. But still I dont know

20条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 21:10

    The error can be caused by mixing together debug builds and release builds in same executable or dll.

    1. in the vs configuration manager, are some of your projects in debug mode and some in release mode?
    2. is one of your release projects has the preprocessor symbol DEBUG or _DEBUG defined?
    3. is one of your debug projects has the preprocessor symbol NDEBUG defined?

提交回复
热议问题