Access to QuantLib classes

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

Access to QuantLib classes

Alexandre Colpo
Hello quantlib!

I'm using the bloodshed 4.9.8.7 version of C++ and cannot access to the
quant lib functions when entering #include <ql/quantlib.hpp> as
pre-processor, even if I specified explicitly the path ...\QuantLib\ql in
the "Libraries" and "C++ Includes" directories within the compiler options.
I don't understand why.

Thank you for your help.

Alex



Reply | Threaded
Open this post in threaded view
|

Re: Access to QuantLib classes

Luigi Ballabio-2
On 2004.04.11 13:46, Alexandre Colpo wrote:
> I'm using the bloodshed 4.9.8.7 version of C++ and cannot access to
> the quant lib functions when entering #include <ql/quantlib.hpp> as
> pre-processor, even if I specified explicitly the path ...\QuantLib
> \ql in the "Libraries" and "C++ Includes" directories within the  
> compiler options.

Alexander,
        QuantLib classes live in namespace QuantLib. You probably need  
to refer to them as QuantLib::Foo, or add
    using namespace QuantLib;
at the beginning of your sources.

Later,
        Luigi