Using Quantlib on a Windows (32bit) machine

In this post, we show the required steps before using  Quantlib on a Windows 32 computer. We install this powerful library for quantitative matters with MS Visual Studio 2010. And, that must work for MS Visual Studio Express 2010 as well. We build upon the “Install” section of the Quantlib library official website, i.e As this web address itself indicates, this is an installation documentation for the previous version of MS Visual Studio (that is the  MS Visual Studio 2008 version). Our job is getting and installing the latest Quantlib files.

The Quantlib library requires the Boost library to be available on your machine. We thus will install the latter, too. Finally, we will install a user-friendly software, namely TortoiseSVN, to get the latest versions of the files of both libraries.

Let’s start:

– Download the Boost library installer, freely available at . At the time of writing the latest available version is BoostPro 1.44.0 Installer.

– Follow the “Boost installation” paragraphs at . Except, that you will install the Visual C++ 10.0 (Visual Studio 2010) binary.

– Download the Quantlib library from . Select the latest version of the library, and start the download.

– Download TortoiseSVN from . It is a subversion client program for Windows. It is easy to use and this software will allow you to get the latest file versions of Boost and Quantlib. It is well documented, too ( ).

– Get the latest Boost file versions from the subversion repository using TortoiseSVN at .

– In much the same way, update your Quantlib file versions, from .

– Find out the QuantLib_vc10.sln file in the C:\ … \Quantlib\QuantLib directory on your disk. Double-click on it. Visual studio will simultaneously open the 14 projects.

– Now, make the Boost headers and libraries available to Quantlib. Right-click on the QuantLib project in the solution explorer, then add your C:\ … \boost_1_44 directory into the “Include files” directory of Visual Studio (We assume you didn’t rename any file). Next, add C:\ … \boost_1_44\lib into the “Library files” directory.

– You are ready to build the Quantlib library. In the solution explorer window of Visual Studio, right-click on “Solution ‘Quantlib_vc10’ (14 projects), and choose “Build the solution” to build all the 14 projects.

–  You’re done!  –

You can build the solution whatever in build or release mode. It doesn’t really matter. The important thing is that you will have to build your future projects in the same mode as Quantlib had been built. Being so, why wouldn’t you build Quantlib in both modes on your computer ?


11 pensamientos en “Using Quantlib on a Windows (32bit) machine

    1. édouard Autor de la entrada

      I appreciate your feedback. Actually, I’m not part of the QL project … I thus don’t know. Be that as it may, you shouldn’t care now you know how to deal without 🙂

  1. Qbit

    hey, thanks for the post!

    Is there any chance you will post something about how to compile quantlib targeting the CLI (instead fo x86)?

  2. Petros Karasakalidis

    Did u mean “QuantLib_vc9.sln” instead of “QuantLib_vc10.sln”? Because I cannot find “QuantLib_vc10.sln” in QuantLib-1.0.1

  3. discage

    Im at quantlib 1.1 and vs 2010, when opening QuantLib_vs10.sln it has 15 projects? the build failed..
    ========== Build: 0 succeeded, 14 failed, 1 up-to-date, 0 skipped ==========

    the only thing i didn’t do is updating the lastest version (but since i just downloaded the latest version, this shouldn’t be the reason caused it failed? Please suggest what to do…thanks!



Por favor, inicia sesión con uno de estos métodos para publicar tu comentario:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s