trouble building QuantLib-SWIG/Python
Posted by laotze00 on
URL: http://quantlib.414.s1.nabble.com/trouble-building-QuantLib-SWIG-Python-tp4533.html
Hi all,
After getting the latest source from CVS and successfully built the
QuantLib, I ran into problem with build the python extension:
building 'QuantLib._QuantLib' extension
g++ -fno-strict-aliasing -DNDEBUG -O3 -Wall -Wstrict-prototypes
-I/usr/local/include -I/usr/include/boost-1_33_1
-I/usr/include/python2.4 -c QuantLib/quantlib_wrap.cpp -o
build/temp.cygwin-1.5.19-i686-2.4/QuantLib/quantlib_wrap.o -Wno-unused
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_vector.h: In
constructor `std::vector<_Tp, _Alloc>::vector(size_t) [with _Tp =
QuantLib::Callability, _Alloc =
std::allocator<QuantLib::Callability>]':
QuantLib/quantlib_wrap.cpp:72654: instantiated from here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_vector.h:207:
error: no matching function for call to
`QuantLib::Callability::Callability()'
QuantLib/quantlib_wrap.cpp:4997: note: candidates are:
QuantLib::Callability::Callability(const QuantLib::Callability&)
/usr/local/include/ql/Instruments/callabilityschedule.hpp:48: note:
QuantLib::Callability::Callability(QuantLib::Price,
QuantLib::Callability::Type, QuantLib::Date)
Can anyone help me out? My environment is cygwin in WinXP. Thanks a lot!