Re: Bug#314650: quantlib: FTBFS (amd64/gcc-4.0): 'Observer' has not been declared

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

Re: Bug#314650: quantlib: FTBFS (amd64/gcc-4.0): 'Observer' has not been declared

Dirk Eddelbuettel
Andreas,

Thanks, as always, for your gcc 4.0 patches. I am passing this on to the
quantlib-dev listm and I'm sure that the simple patch will find its way into
the CVS archive.

Regards, Dirk

On 17 June 2005 at 19:10, Andreas Jochens wrote:
| 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 {

--
Statistics: The (futile) attempt to offer certainty about uncertainty.
         -- Roger Koenker, 'Dictionary of Received Ideas of Statistics'


Reply | Threaded
Open this post in threaded view
|

Re: Re: Bug#314650: quantlib: FTBFS (amd64/gcc-4.0): 'Observer' has not been declared

Luigi Ballabio
Dirk and Andreas,
        thanks for the report. I applied the patch to the main sources.

Cheers,
        Luigi

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

I have yet to see any problem, however complicated, which, when you
looked at it in the right way, did not become still more complicated.
-- Poul Anderson