QuantLib-1.0.1-6.fc15.x86_64 -fpermissive error

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

QuantLib-1.0.1-6.fc15.x86_64 -fpermissive error

Patrick McEvoy-5
Hello,

I am getting several of these errors when trying to compile a program
which links with QuantLib using gcc-c++-4.6.0-7.fc15.x86_64:

/usr/include/ql/math/interpolations/multicubicspline.hpp:276:33: error:
reference ‘y2_’ cannot be declared ‘mutable’ [-fpermissive].

I have found reference to the problem with QuantLib-swig and rquantlib
but not the core Quantlib package.

Is there a fix for this yet?

Thank you for your help,

Patrick


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib-1.0.1-6.fc15.x86_64 -fpermissive error

Luigi Ballabio
On Thu, 2011-05-26 at 17:44 -0500, Patrick McEvoy wrote:

> I am getting several of these errors when trying to compile a program
> which links with QuantLib using gcc-c++-4.6.0-7.fc15.x86_64:
>
> /usr/include/ql/math/interpolations/multicubicspline.hpp:276:33: error:
> reference ‘y2_’ cannot be declared ‘mutable’ [-fpermissive].
>
> I have found reference to the problem with QuantLib-swig and rquantlib
> but not the core Quantlib package.
>
> Is there a fix for this yet?

Not yet, but in the meantime you can add -fpermissive to the compiler
flags to turn these errors into warnings and build the library.

Luigi


--

Ogden's Law:
The sooner you fall behind, the more time you have to catch up.



------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users