Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

error LNK2038: mismatch detected

$
0
0

I have a C++ CLR Class Library that is linked to a static library. My static library was linked with OpenCV 3.0 statilibs folder (by setting additional library directories and additional dependencies). The static library with OpenCV code  works fine. The problem is when I try to link it to my C++ CLR Class Library, I get errors like this:

error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in ...

I have tried on my static library to change the option: c/c++ - code generation - runtime library but nothing happens, the same error appear in my class library even if this option is set to mutli-threaded DLL (/MD) or to mutli-threaded (/MT.

Have no idea what to try, please help.

Thanks


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>