QuantLib Python Bindings - Windows
Posted by newbie730 on
URL: http://quantlib.414.s1.nabble.com/QuantLib-Python-Bindings-Windows-tp1064.html
I am having trouble compiling the python bindings in windows. I have VC 2008 and VC 2010 installed - the binaries built fine with VC 2008.
QL_DIR is currently set to the QuantLib source directory as downloaded using SVN
>echo %QL_DIR%
c:\Users\lcota\workspace\quantlib\QuantLib
the output of the python build command is a bunch of errors like the following
python setup.py build
running build
running build_py
running build_ext
building 'QuantLib._QuantLib' extension
C:\Python26\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python26\include -IC:\Python26\PC -c QuantLib/quantlib_wrap.cpp -o build
QuantLib/quantlib_wrap.cpp:3423:26: ql/version.hpp: No such file or directory
QuantLib/quantlib_wrap.cpp:3424: error: `QL_HEX_VERSION' was not declared in this scope
QuantLib/quantlib_wrap.cpp:3425: error: `QL_VERSION' was not declared in this scope
QuantLib/quantlib_wrap.cpp:3484:27: ql/quantlib.hpp: No such file or directory
QuantLib/quantlib_wrap.cpp:3487:6: #error using an old version of QuantLib, please update
QuantLib/quantlib_wrap.cpp:3874:48: boost/algorithm/string/case_conv.hpp: No such file or directory
QuantLib/quantlib_wrap.cpp:3878: error: `QuantLib' has not been declared
QuantLib/quantlib_wrap.cpp:3878: error: expected nested-name-specifier before "Error"
QuantLib/quantlib_wrap.cpp:3878: error: `Error' has not been declared
QuantLib/quantlib_wrap.cpp:3879: error: `QuantLib' has not been declared
QuantLib/quantlib_wrap.cpp:3879: error: expected nested-name-specifier before "Handle"
QuantLib/quantlib_wrap.cpp:3879: error: `Handle' has not been declared
QuantLib/quantlib_wrap.cpp:3880: error: `QuantLib' has not been declared
QuantLib/quantlib_wrap.cpp:3880: error: expected nested-name-specifier before "RelinkableHandle"
QuantLib/quantlib_wrap.cpp:3880: error: `RelinkableHandle' has not been declared
QuantLib/quantlib_wrap.cpp:3883: error: `QuantLib' has not been declared
QuantLib/quantlib_wrap.cpp:3883: error: expected nested-name-specifier before "Integer"
QuantLib/quantlib_wrap.cpp:3883: error: `Integer' has not been declared
QuantLib/quantlib_wrap.cpp:3884: error: `QuantLib' has not been declared
QuantLib/quantlib_wrap.cpp:3884: error: expected nested-name-specifier before "BigInteger"
QuantLib/quantlib_wrap.cpp:3884: error: `BigInteger' has not been declared