trouble building QuantLib-SWIG/Python

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

trouble building QuantLib-SWIG/Python

laotze00
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!


Reply | Threaded
Open this post in threaded view
|

Re: trouble building QuantLib-SWIG/Python

Luigi Ballabio
On 03/02/2006 03:29:02 PM, [hidden email] wrote:
> After getting the latest source from CVS and successfully built the
> QuantLib, I ran into problem with build the python extension:

Hi,
     the problem was already fixed, but not on the CVS trunk. Since  
we're approaching release 0.3.12, bug-fixes are being made on the  
corresponding release branch; they will be merged on the trunk later.  
You can check out such branch (for both the QuantLib and QuantLib-SWIG  
module) using the "R000312f0-branch" tag.

Luigi


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

I hate quotations.
-- Ralph Waldo Emerson