Error compiling Quantlib v1.10 (C1083: Cannot Open include file corecrt.h)
Posted by ponram on May 30, 2017; 12:41pm
URL: http://quantlib.414.s1.nabble.com/Error-compiling-Quantlib-v1-10-C1083-Cannot-Open-include-file-corecrt-h-tp18318.html
Hi
I am still a newbie for Quantlib and compiling large projects on C++. My apologies if the below question sounds very trivial.
I am getting a lot of errors such as below when trying to build the new v1.10 on Visual Studio 2017. I am using a Windows 10 machine.
Error C1083 Cannot open include file: 'corecrt.h': No such file or directory (compiling source file varianceoption.cpp) testsuite c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\crtdefs.h
I tried re-targetting the solution to Windows-10 SDK but it didn't help. I installed Windows-8 SDK and tried again with the included additional paths below but still get the same errors.
VC++ include directories:
C:\local\boost_1_64_0
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt
Library Directories:
C:\local\boost_1_64_0\lib64-msvc-14.1
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x86
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x86
C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86 -- Inherited
I am trying to build on Debug Win32 mode. Kindly help to resolve these errors.
Thanks