Compiling SWIG Extensions With VC2008 and VC2010 Both Installed

E

ElMariachi

I am attempting to compile a SWIG extension library for QuantLib
(www.quantlib.org) on Windows 7 running Python 2.6.

2.6 needs VC2008 to compile extensions yet distutils cannot find this
version, is there a way I can specify that this version be used? Currently,
when I attempt a build, I get a lot of the following errors:

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top