Re: about installing quantlib

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/about-installing-quantlib-tp5187p5188.html


Hi,

On Wed, 2007-01-03 at 12:39 +0000, [hidden email] wrote:
> I am a beginner to C++ and try to install Quantlib. I am using VC++6. I
> carried out the following steps:
>
> 1. I download Boost and Bjam, then copy Bjam into the file where Boost is.
> 2. In the command line, I input: bjam instal
> 3. After a while, it says:
>        failed updating 948 tartets...
>        skipped 412 targets...
>        updated 3785 targets...

So far, so good.

> 4. In VC++6, I did the following:
>    (1) In "Tools", "Options", "Directories", "Show directories for",
> "Include files", I include both "c:\boost\include\boost_1_33_1", and
> "d:\quantlib"
>    (2) In "Tools", "Options", "Directories", "Show directories for",
> "Library files", I include "c:\boost\lib"

Ok.

>    (3) In "Projects", "Settings", "Directories", "C/C++", "C++
> language", I check "Enable Run-Time Type Information"

Was this necessary? I though RTTI was enabled already in the provided
projects. What project were you modifying, and how did you open it---on
its own or by opening the provided workspace (QuantLib.dsw)?

>
> Then I run the example "BermudanSwaption.cpp", it says:
>      cannot open file "QuantLib-vc6-mt-sgd-0_3_14.lib"

That would be because you didn't build the library before the example.

> But if I choose "a-win32 Release" instead of "a-win32 Debug" from
> "Build", "Set Active Project Configuration", and run the example
> "BermudanSwaption.cpp" again, it says:
>       fatal error C1189: #error :  Enable Run-Time Type Information
> (Project Settings | C/C++ | C++ Language)

Maybe at point 3) you only set the option on the debug configuration?

Later,
        Luigi


----------------------------------------

I'd never join any club that would have the likes of me as a member.
-- Groucho Marx