[ quantlib-Bugs-1797273 ] Compile Error using gcc 3.4.1 on Intel Solaris 10

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-1797273 ] Compile Error using gcc 3.4.1 on Intel Solaris 10

SourceForge.net
Bugs item #1797273, was opened at 2007-09-18 21:25
Message generated for change (Comment added) made by lballabio
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1797273&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Sameer D'Costa (sameerd)
>Assigned to: Luigi Ballabio (lballabio)
Summary: Compile Error using gcc 3.4.1 on Intel Solaris 10

Initial Comment:
The latest svn version (12714) does not compile under gcc 3.4.1 on Intel Solaris 10. The end of the error message looks like

analyticcontinuousfloatinglookback.cpp: In member function `QuantLib::Real QuantLib::AnalyticContinuousFloatingLookbackEngine::A(QuantLib::Real) const':
analyticcontinuousfloatinglookback.cpp:113: error: expected primary-expression before numeric constant
analyticcontinuousfloatinglookback.cpp:113: error: expected `;' before numeric constant


It appears that the variable SS in ql/PricingEngines/Lookback/analyticcontinuousfixedlookback.cpp  line 113 is conflicting with something else. Attached a diff to fix the problem.

Note:
It appears that this error was reported by someone else before but I did not see a bug report filed. http://osdir.com/ml/finance.quantlib.devel/2006-09/msg00016.html

----------------------------------------------------------------------

Comment By: Luigi Ballabio (lballabio)
Date: 2007-11-23 11:14

Message:
Logged In: YES
user_id=75450
Originator: NO

The bug is now fixed in CVS.
Thank you for the report.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1797273&group_id=12740

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev