64 bit compilation

Posted by Samuel Quinodoz on
URL: http://quantlib.414.s1.nabble.com/64-bit-compilation-tp13790.html

Dear all,

 

I had recently to switch my installation of QuantLib from 32 to 64 bit and I encountered several problems (that I finally solved). I would like to share my experience and also know if there are better solutions than mine. I used Visual C++ 2010 Express and the SDK 7.1 (for the 64 bit compiler).

 

First of all, I had to reinstall boost by myself in 64 bit. Indeed, the 64 bit installer released recently by boostpro was causing a link error, like

 

libboost_unit_test_framework-vc100-mt-1_51.lib(unit_test_suite.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

 

I could confirm that this was the source of the problem by inspecting the lib with the dumpbin utility.

 

Once boost was installed, I followed the guide for the installation excepted for the following points:

-          I used a x64 platform in the Property page of the projects

-          I changed the Platform Toolset from vc100 to Windows7.1SDK in Configuration Properties -> General

-          Finally, there is a problem with the SDK (known, but Microsoft won’t fix) and I had to disable de browse information: I put No in Configuration Properties -> C/C++ -> Browse Information - > Enable Browse Information. Otherwise, I got complains about bscmake.exe

 

Apart from a big bunch of warnings about conversions between size_t and int, everything runs smoothly and all the tests are successful.

 

Let me know if you have different experiences and/or better solutions than the ones that I found!

 

Best regards,

 

Samuel Quinodoz

 

 


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users