https://blog.csdn.net/wzsy/article/details/70599654
① The value “0” does not match the value “2”. Debug uses the library files under Release.
② The value “2” does not match the value “0”. Release uses the library file under Debug.
In both cases, you just need to set its value in the preprocessing definition to match the program you want to call. In VS2010, the default value is 2 in Debug mode and 0 in Release mode.
For case one, just in the project ->; Property – & gt; Configure properties ->; C/C++-> Preprocessor ->; Add “_ITERATOR_DEBUG_LEVEL=0” to the preprocessing definition.
Or modify the run to use Release mode, corresponding to: Project ->; Property – & gt; Configure properties ->; C/C++-> Code generation ->; MD
For case two, just in the project ->; Property – & gt; Configure properties ->; C/C++-> Preprocessor ->; Add “_ITERATOR_DEBUG_LEVEL=2” to the preprocessing definition.
Or modify the run using Debug mode, corresponding to: project ->; Property – & gt; Configure properties ->; C/C++-> Code generation ->; MDd
① The value “0” does not match the value “2”. Debug uses the library files under Release.
② The value “2” does not match the value “0”. Release uses the library file under Debug.
In both cases, you just need to set its value in the preprocessing definition to match the program you want to call. In VS2010, the default value is 2 in Debug mode and 0 in Release mode.
For case one, just in the project ->; Property – & gt; Configure properties ->; C/C++-> Preprocessor ->; Add “_ITERATOR_DEBUG_LEVEL=0” to the preprocessing definition.
Or modify the run to use Release mode, corresponding to: Project ->; Property – & gt; Configure properties ->; C/C++-> Code generation ->; MD
For case two, just in the project ->; Property – & gt; Configure properties ->; C/C++-> Preprocessor ->; Add “_ITERATOR_DEBUG_LEVEL=2” to the preprocessing definition.
Or modify the run using Debug mode, corresponding to: project ->; Property – & gt; Configure properties ->; C/C++-> Code generation ->; MDd
Read More:
- Error lnk2038 occurred during PCL code compilation: detected “error” during PCL code compilation_ ITERATOR_ DEBUG_ Mismatch of level: value ‘0’ does not match value ‘2’ solution
- Solution of adding judgment error in the iterative process of Java iterator iterator
- The reason and solution of the error of join function: sequence item 0: expected STR instance, int found
- LINK : fatal error LNK1168: cannot open Debug/1.exe for writing
- Link: fatal error LNK1104: cannot open file “debug”/ xx.exe The question of
- error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MTd_StaticDebug’ doesn’t match value ‘
- Error: lnk1168. Unable to open e::: language ⁃ project3 ⁃ debug ⁃ project3.exe for writing
- Cannot call the same level library solution in pychar
- fatal error LNK2019[UNK]fatalerror LNK1120
- IBM MQ Reason 2538(MQRC_ HOST_ NOT_ An example of error reason
- DirectX encountered “unresolved external symbol” when compiling on vs2015__ The solution and reason of “vsnwprintf”
- The reason and solution of Android intent value not updated
- VC Critical error detected c0000374 crash problem and solution
- Visual Studio 2010 compilation error fatal error lnk1123: failed during conversion to coff: solution to invalid or corrupt file
- appear java.lang.NoClassDefFoundError A kind of reason and solution of the mistake
- The solution of no space left on device always appears when using TF’s debug tool (tfdbg)
- Debug Assertion Failed! Detailed solution
- Connection authorization failure occurred. Reason: local security service non retryable error solution
- Windows 10 startup item repair an operating system was’t found solution
- Duplicate keys detected: ‘XXXX’. This may cause an update error. Solution