Login  Register

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

Posted by igitur on Jun 08, 2017; 2:12pm
URL: http://quantlib.414.s1.nabble.com/Error-compiling-Quantlib-v1-10-C1083-Cannot-Open-include-file-corecrt-h-tp18318p18340.html

Apologies, the previous attachment had a minor typo (14.0 vs 14.1). I attach the correct one now.

Francois Botha

On 8 June 2017 at 16:09, Francois Botha <[hidden email]> wrote:
Hi

If your end up with QuantLib-vc141-mt-gd.lib, then you built QuantLib with the Win32 configuration.

If you choose the x64 build, then it should produce QuantLib-vc141-x64-mt-gd.lib . 

I just built the latest QuantLib code (freshly pulled from the repo) using VS 2017 Community. I chose the x64 build. I didn't build Boost myself, but downloaded installed boost_1_64_0-msvc-14.1-64.exe from https://sourceforge.net/projects/boost/files/boost-binaries/1.64.0/

I also attach my boost.props file, which is easy to add to the QuantLib project using the Property Manager instead of having to add the include directories manually. If your boost location differs from mine, you would have to edit this boost.props file.

regards

Francois Botha

On 8 June 2017 at 11:47, jdoldham <[hidden email]> wrote:
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



--
View this message in context: http://quantlib.10058.n7.nabble.com/Error-compiling-Quantlib-v1-10-C1083-Cannot-Open-include-file-corecrt-h-tp18318p18338.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

boost.props (1K) Download Attachment