Compilation error
Posted by Frank Cornelis-4 on
URL: http://quantlib.414.s1.nabble.com/Compilation-error-tp2829.html
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