Re: Access to QuantLib classes

Posted by Luigi Ballabio-2 on
URL: http://quantlib.414.s1.nabble.com/Access-to-QuantLib-classes-tp2904p2905.html

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