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

前端 未结 20 1107
耶瑟儿~
耶瑟儿~ 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:25

    Like all the other answers, I checked my Configuration Properties -> C/C++ -> Preprocessor directives.
    In my case I had the NDEBUG correctly defined in Release, but I also had: _SECURE_SCL=1.

    Removing that one fixed the issue.

提交回复
热议问题