VS2012 - Linking Issue

I implemented the live555 library successfully and now I am trying to extend my application. However, when adding new header files such as

include <string>

I get the following error with the live555 libraries:

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

I already updated my Project and main.cpp-Settings. I've set the Runtime Library to 'Multithreaded-DLL (/MD)'. But no difference.

When I remove the

include <string>

the project compiles perfectly fine.

Any ideas?
Last edited on
Can you show more context? Where are you adding this #include?
At the very top:

I have the live555 header files and then I want to add other header files:

1
2
3
4
5
6
#include "liveMedia.hh"
#include "BasicUsageEnvironment.hh"
#include "MediaSink.hh"

// new one:
#include <string> 


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

with the live555 library 'libgroupsock.lib' as soon as it's used to create the RTSPServer object.
Last edited on
I find that it's generally a include system files first. So try changing the code to:
1
2
3
4
5
#include <string> 

#include "liveMedia.hh"
#include "BasicUsageEnvironment.hh"
#include "MediaSink.hh" 
Topic archived. No new replies allowed.