Compiling SWIG Extensions With VC2008 and VC2010 Both Installed

ElMariachi lo.maximo73 at gmail.com
Fri Sep 17 16:56:19 CEST 2010


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
-- 
View this message in context: http://old.nabble.com/Compiling-SWIG-Extensions-With-VC2008-and-VC2010-Both-Installed-tp29739343p29739343.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list