QuantLib for Python2.6 Windows
Posted by steinarruneeriksen on
URL: http://quantlib.414.s1.nabble.com/QuantLib-for-Python2-6-Windows-tp8023.html
Has anybody successfully managed to build this one?
I have built _QuantLib.pyd for Python 2.5 with Visual Studio 2003, but I am not able to build the same library for Python 2.6
The problem:
Python 2.6 is built with Visual Studio 2008 (i.e. QuantLib_vc9.sln).
I have built QuantLib (0.97) itself with 2008, resulting in QuantLib-vc90-mt-s-0_9_7.lib. This works fine, and I have tried all kinds of versions of boost along side it (1.34.1->1.39.9). There is an error with Boost 1.40 and as such I was not able to try this one with QuantLib 0.97
The problem appears when trying to build the SWIG wrapper for Python. The paths are set to QL_DIR and boost, but the linker fails when running "setup.py build"
Creating library build\temp.win32-2.6\Release\QuantLib\_QuantLib.lib and obje
ct build\temp.win32-2.6\Release\QuantLib\_QuantLib.exp
quantlib_wrap.obj : error LNK2019: unresolved external symbol "void __cdecl boos
t::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAB
Vexception@std@@@Z) referenced in function "public: __thiscall boost::detail::sh
ared_count::shared_count<class QuantLib::Actual365Fixed::Impl>(class QuantLib::A
ctual365Fixed::Impl *)" (??$?0VImpl@Actual365Fixed@QuantLib@@@shared_count@detai
l@boost@@QAE@PAVImpl@Actual365Fixed@QuantLib@@@Z)
build\lib.win32-2.6\QuantLib\_QuantLib.pyd : fatal error LNK1120: 1 unresolved e
xternals
I have tried QuantLib 0.96 as well, but with the same problem. I think it has to do with Visual Studio 2008, and as such just wondering if anyone else has successfully \built this