64 bit compilation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

64 bit compilation

Samuel Quinodoz

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
Reply | Threaded
Open this post in threaded view
|

Re: 64 bit compilation

Luigi Ballabio
Hi all,
    just a follow-up: I don't have an x64 machine for testing, but it
should be possible to have both 32 and 64 bit configurations in the
VC++10 projects (rather than replacing the 32-bit configuration with
the 64-bit one).  If anyone wants to try it and contribute the updated
project, I'll be glad to add it to the repository.

Luigi


On Fri, Dec 7, 2012 at 12:51 PM, Samuel Quinodoz
<[hidden email]> wrote:

> 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
>

------------------------------------------------------------------------------
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