Package: quantlib
Version: 0.3.9-6
Severity: normal
Tags: patch

When building 'quantlib' on amd64/unstable with gcc-4.0,
I get the following error:

 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -O0 -D_REENTRANT -MT bas
ispointsensitivity.lo -MD -MP -MF .deps/basispointsensitivity.Tpo -c basispoints
ensitivity.cpp  -fPIC -DPIC -o .libs/basispointsensitivity.o
In file included from /usr/include/boost/config.hpp:35,
                 from ../../ql/qldefines.hpp:28,
                 from ../../ql/errors.hpp:27,
                 from ../../ql/date.hpp:28,
                 from ../../ql/calendar.hpp:27,
                 from ../../ql/termstructure.hpp:27,
                 from ../../ql/yieldtermstructure.hpp:28,
                 from ../../ql/CashFlows/basispointsensitivity.hpp:28,
                 from basispointsensitivity.cpp:21:
/usr/include/boost/config/compiler/gcc.hpp:92:7: warning: #warning "Unknown comp
iler version - please run the configure tests and report the results"
../../ql/Patterns/observable.hpp:44: error: 'Observer' has not been declared
../../ql/Patterns/observable.hpp:45: error: 'Observer' has not been declared
../../ql/Patterns/observable.hpp:46: error: 'Observer' was not declared in this
scope

With the attached patch 'quantlib' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/quantlib-0.3.9/ql/Patterns/observable.hpp 
./ql/Patterns/observable.hpp
--- ../tmp-orig/quantlib-0.3.9/ql/Patterns/observable.hpp       2005-03-17 
11:45:28.000000000 +0100
+++ ./ql/Patterns/observable.hpp        2005-06-17 17:36:32.000000000 +0200
@@ -30,6 +30,8 @@
 
 namespace QuantLib {
 
+    class Observer;
+
     //! Object that notifies its changes to a set of observables
     /*! \ingroup patterns */
     class Observable {


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to