Page 1 of 1

C Runtime Library Issue

Posted: Tue May 26, 2020 10:31 pm
by newguy111
OS: Windows 10
IDE: Visual Studio 2019
Libraries: wxWidgets, CPR (C++ Requests)

When I attempt to run my program, I get multiple errors like the ones below:

-Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in myApp.obj
-Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in myApp.obj


It appears the issue is that the libraries were built using different versions of the C Runtime Library. I attempted to rebuild it by only checking the DLL Release | Win32 items below, hoping it would change the CRT.

build.PNG

Is this the right way to go about things, or am I mistaken in thinking this will change the CRT to MD_DynamicRelease? What is the simplest way I could change it? I am a big-time noob so thank you for your patience!

Re: C Runtime Library Issue

Posted: Wed May 27, 2020 3:48 am
by ONEEYEMAN
Hi,
You shuold check the settings in your project.
Those settings should match the settings that wxWidgets was built with.

Thank you.