default.hpp

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

default.hpp

Simon Ibbotson
The file ql/default.hpp does not compile under Sun Solaris (g++ compiler). The offending line is :

    enum Seniority { SEN, SUB, SEC, TI0, TI1, PCL, AnySeniority };

This is due to the enumeration value SEC already being declared as a numeric constant.
The following lines need to be included (or the enumeration value changed) at the top of the file.

#ifdef SEC
#undef SEC
#endif


Cheers,

Simon

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: default.hpp

Luigi Ballabio
On Fri, 2008-08-29 at 09:57 +0100, Simon Ibbotson wrote:
> The file ql/default.hpp does not compile under Sun Solaris (g++
> compiler). [...]
> The following lines need to be included (or the enumeration value
> changed) at the top of the file.
>
> #ifdef SEC
> #undef SEC
> #endif

Done, thanks.

Luigi



--

Grabel's Law:
2 is not equal to 3 -- not even for large values of 2.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev