Compilation error

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

Compilation error

Frank Cornelis-4
Hi,

The latest CVS version of QuantLib does not compile on my machine.
The error I get looks very weird and I have absolutely no idea what is
going wrong. My OS is a default Fedora Core 1
(g++ (GCC) 3.3.2 20031022)
Could anyone fix this?


Regards,
Frank.


g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -g -O2 -MT
mathf.lo -MD -MP -MF .deps/mathf.Tpo -c mathf.cpp  -fPIC -DPIC -o
.libs/mathf.o
../../ql/Math/bicubicsplineinterpolation.hpp: In constructor `
   QuantLib::BicubicSplineInterpolation<RandomAccessIteratorX,
   RandomAccessIteratorY,
MatricialData>::BicubicSplineInterpolation(const I1&,
   const I1&, const I2&, const I2&, const M&) [with
RandomAccessIteratorX =
   __gnu_cxx::__normal_iterator<const Time*, std::vector<Time,
   std::allocator<Time> > >, RandomAccessIteratorY =
   __gnu_cxx::__normal_iterator<const Time*, std::vector<Time,
   std::allocator<Time> > >, MatricialData = QuantLib::Matrix]':
mathf.cpp:141:   instantiated from here
../../ql/Math/bicubicsplineinterpolation.hpp:73: error: `
   QuantLib::CubicSplineInterpolation<__gnu_cxx::__normal_iterator<const
Time*,
   std::vector<Time, std::allocator<Time> > >, const
   double*>::BoundaryCondition' is not an aggregate type
../../ql/Math/bicubicsplineinterpolation.hpp:73: error: `
   QuantLib::CubicSplineInterpolation<__gnu_cxx::__normal_iterator<const
Time*,
   std::vector<Time, std::allocator<Time> > >, const
   double*>::BoundaryCondition' is not an aggregate type
../../ql/Math/bicubicsplineinterpolation.hpp: In member function `double
   QuantLib::BicubicSplineInterpolation<RandomAccessIteratorX,
   RandomAccessIteratorY, MatricialData>::operator()(typename
   std::iterator_traits<_Iterator>::value_type&, typename
   std::iterator_traits<_ForwardIter2>::value_type&, bool) const [with
   RandomAccessIteratorX = __gnu_cxx::__normal_iterator<const Time*,
   std::vector<Time, std::allocator<Time> > >, RandomAccessIteratorY =
   __gnu_cxx::__normal_iterator<const Time*, std::vector<Time,
   std::allocator<Time> > >, MatricialData = QuantLib::Matrix]':
mathf.cpp:142:   instantiated from here
../../ql/Math/bicubicsplineinterpolation.hpp:101: error: `
   QuantLib::CubicSplineInterpolation<__gnu_cxx::__normal_iterator<const
Time*,
   std::vector<Time, std::allocator<Time> > >,
   __gnu_cxx::__normal_iterator<const Time*, std::vector<Time,
   std::allocator<Time> > > >::BoundaryCondition' is not an aggregate
type
../../ql/Math/bicubicsplineinterpolation.hpp:101: error: `
   QuantLib::CubicSplineInterpolation<__gnu_cxx::__normal_iterator<const
Time*,
   std::vector<Time, std::allocator<Time> > >,
   __gnu_cxx::__normal_iterator<const Time*, std::vector<Time,
   std::allocator<Time> > > >::BoundaryCondition' is not an aggregate
type






Reply | Threaded
Open this post in threaded view
|

Re: Compilation error

Luigi Ballabio-2
Hi,

On 2004.03.06 08:51, Frank Cornelis wrote:
> The latest CVS version of QuantLib does not compile on my machine.

This happens more often that you think :)

The CVS repository is a development area, and as such is not guaranteed  
to compile at all times and on all platforms. It is a frequent  
occurrence that a developer commits code which works on his machine and  
compiler but that is not palatable to others compilers (to which he  
doesn't have access, so that he cannot immediately check.)
Usually the code get fixed as soon as another developer tries to  
compile it on another system.

> Could anyone fix this?

It was fixed a couple of days ago. However, the SourceForge server for  
anonymous CVS lags a few days behind the developers' server. Try  
updating until you see the fix coming through.

Regards,
        Luigi