C Runtime Library Issue

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
newguy111
In need of some credit
In need of some credit
Posts: 3
Joined: Mon Apr 27, 2020 4:24 am

C Runtime Library Issue

Post by newguy111 » Tue May 26, 2020 10:31 pm

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!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4366
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: C Runtime Library Issue

Post by ONEEYEMAN » Wed May 27, 2020 3:48 am

Hi,
You shuold check the settings in your project.
Those settings should match the settings that wxWidgets was built with.

Thank you.

Post Reply