Login  Register

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

Posted by Jean-Mathieu Vermosen on Jun 07, 2017; 2:09am
URL: http://quantlib.414.s1.nabble.com/Error-compiling-Quantlib-v1-10-C1083-Cannot-Open-include-file-corecrt-h-tp18318p18337.html

Hi,

According to the error message, your boost .lib bitness is conflicting with
the compiler setup. To make sure you have the correct boost files, try to
run

dumpbin /headers *.lib | findstr machine

in the boost folder from a vs command prompt.

I struggled with a similar problem with 1_63 a few weeks ago and it look b2
doesn't clean up correctly all the temp files between the builds. If you
have the same issue, try to run b2 --clean-all before rebuilding boost.

Best,

Jean-Mathieu

-----Original Message-----
From: ponram [mailto:[hidden email]]
Sent: Tuesday, June 6, 2017 4:50 PM
To: [hidden email]
Subject: Re: [Quantlib-users] Error compiling Quantlib v1.10 (C1083: Cannot
Open include file corecrt.h)

Thanks for replying Luigi. My IDE is ok. I could build the QuantLib project
(not the entire solution) to produce the library output
'QuantLib-vc141-mt-gd.lib'. I am also able to run the test console program
mentioned on the website that tests Dates and Calendar classes. I get those
errors only when i build the entire solution.

I tried a separate build of the "testsuite" project and got the below linker
error:

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.

I am using Boost v1.64.0



--
View this message in context:
http://quantlib.10058.n7.nabble.com/Error-compiling-Quantlib-v1-10-C1083-Can
not-Open-include-file-corecrt-h-tp18318p18336.html
Sent from the quantlib-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users