In my debug built i did not really care if my libraries get statically linked or not. Though now for my release built i'd like to statically link some things. Thus i changed from /MDd to /MT for my release build.
error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MT_StaticRelease' in main.obj
This is the error i am receiving.
Do i need to set anything else to statically link libraries? It is also telling me in a warning that it is linking MSVCRTD
. Shouldn't it link MSVCRT
in a release build?