QL_HEX_VERSION Version Number in version.hpp

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

QL_HEX_VERSION Version Number in version.hpp

Ahmad Mahomed
Hi,

I'm not a C++ developer - but just wanted to make sure that the QL_HEX_VERSION  number is correct '0x010001f0' in version.hpp from the v1.0.1 download. 

The NQuantLibc for the SWIG C# bindings does not compile. The error is as follows:

\quantlib_wrap.cpp(345) : fatal error C1189: #error :  using an old version of QuantLib, please update

Changing Line 344 of 'quantlib_wrap.cpp' to the following works. 

#if QL_HEX_VERSION < 0x010001f0//0x010100f0


Regards,

--
Ahmad Mahomed

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: QL_HEX_VERSION Version Number in version.hpp

Luigi Ballabio
Ahmad,
        you're probably using the SWIG bindings from the Subversion repository.
Use QuantLib-SWIG 1.0, which works with QuantLib 1.0.1.

Luigi

On Thu, 2010-09-16 at 10:31 +0200, Ahmad Mahomed wrote:

> I'm not a C++ developer - but just wanted to make sure that the
> QL_HEX_VERSION  number is correct '0x010001f0' in version.hpp from the
> v1.0.1 download.
>
>
> The NQuantLibc for the SWIG C# bindings does not compile. The error is
> as follows:
>
>
>         \quantlib_wrap.cpp(345) : fatal error C1189: #error :  using
>         an old version of QuantLib, please update
>
>
> Changing Line 344 of 'quantlib_wrap.cpp' to the following works.
>
>
>         #if QL_HEX_VERSION < 0x010001f0//0x010100f0
>
>
>
> Regards,
>
> --
> Ahmad Mahomed
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev


--

No, I'm not interested in developing a powerful brain. All I'm after
is just a mediocre brain, something like the president of American
Telephone and Telegraph Company.
-- Alan Turing on the possibilities of a thinking machine, 1943.



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev