0
votes

I get the following error in relation with a live555 library:

error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug in main.obj

I changed the Runtime Library in the Project Settings and main.cpp-Settings to 'Multithreaded-DLL (/MD)'.

However, I still get the error. It's like it doesn't change the Runtime Library even though I changed it in the settings.

Do you have an idea why?

I noticed that the error is gone when I remove include <string>. How can that be related?

1

1 Answers

0
votes

I'm having the same problem with VS2013. It's maddening and I'm surprised to see that no one else has asked the question before you..

I don't have a complete answer, but removing the defined-by-default "_DEBUG" preprocessor macro got rid of the errors for me. I assume that there's a pragma or something in the MS standard library headers that triggers when _DEBUG is defined and somehow forces the use of debug versions regardless of the command line.

Just another little landmine the VS team put in there to keep our lives interesting, I suppose. Thanks, VS team.