http://quantlib.414.s1.nabble.com/LNK2038-mismatch-detected-for-RuntimeLibrary-tp18442.html
Hi,
I'm receiving these errors when I'm trying to compile my program against QuantLib-1.10 using Boost-1.64.0 prebuilt libraries (Win32):
Severity Code Description Project File Line Suppression State
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in Garch.obj MTF_Garch d:\Users\ypx7647\Documents\Visual Studio 2017\Projects\MTF_Garch\MTF_Garch\MTF_Garch.obj 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in Garch.obj MTF_Garch d:\Users\ypx7647\Documents\Visual Studio 2017\Projects\MTF_Garch\MTF_Garch\msvcprtd.lib(locale0_implib.obj) 1
Error LNK1104 cannot open file 'QuantLib-vc141-mt-gd.lib' MTF_Garch d:\Users\ypx7647\Documents\Visual Studio 2017\Projects\MTF_Garch\MTF_Garch\LINK 1
I tried recreating my solution going from VS2015 to VS2017 Community. I've installed the prebuilt libraries of boost and compiled QuantLib using the Win32 boost libraries with the Runtime Library set to Multi Threaded DLL (Release not Debug) for all sub projects in QuantLib. My solution and cpp files within are configured for Runtime Library set to Multi Threaded DLL (Release not Debug) as well.
However, I'm still getting this error and I don't understand why.
Any ideas how I can fix this please as everything to me and my limited experience appears good.
Thanks in advance.
-------
Internet communications are not secure and therefore Andrew Leach does not accept legal responsibility for the contents of this message. The information contained in this email is private, personal and confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. This email and any attachments have been automatically scanned for viruses prior to dispatch, but we make no warranty that they are free from computer viruses. You are advised to check all emails and attachments using your own anti virus software before opening or executing them.