Login  Register

Re: Error compiling Quantlib v1.10 (C1083: Cannot Open include file corecrt.h)

Posted by jdoldham on Jun 08, 2017; 9:47am
URL: http://quantlib.414.s1.nabble.com/Error-compiling-Quantlib-v1-10-C1083-Cannot-Open-include-file-corecrt-h-tp18318p18338.html

Hi Ponram,

I am also a QuantLib newbie...
I encountered a similar problem a few weeks ago when using QuantLib with Visual Studio 17. It was something to do with the solution configuration setting in VS 17 (release/debug - x86/x64) not matching the Library you have built.

libboost_unit_test_framework-vc141-mt-gd-1_64.lib(test_tree.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
Done building project "testsuite.vcxproj" -- FAILED.


So I believe the problem will be you have built QuantLib in one setting (possibly creating a .lib file such as libboost_unit_test_framework--mt-s-1_64.lib) or similar which doesnt exactly match. I solved it by building QuantLib in several different configurations in VS17 so you have multiple variants of the file listed above and hence it works for all configurations in VS17.

Hope this helps,

JD