Login  Register

default.hpp

Posted by Simon Ibbotson on Aug 29, 2008; 8:57am
URL: http://quantlib.414.s1.nabble.com/default-hpp-tp12200.html

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