Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compiling SWIG Extensions With VC2008 and VC2010 Both Installed

Reply
Thread Tools

Compiling SWIG Extensions With VC2008 and VC2010 Both Installed

 
 
ElMariachi
Guest
Posts: n/a
 
      09-17-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...p29739343.html
Sent from the Python - python-list mailing list archive at Nabble.com.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade to VC2010 sharat C++ 2 12-01-2011 04:06 PM
problem in compiling the module in VC2010 llwaeva@gmail.com Python 0 07-20-2011 03:33 PM
Why this fails on Linux but works on VC2010 Jag C++ 5 07-17-2010 01:07 PM
Dynamically compiling and reloading SWIG .pyd file Dave Guthrie Python 0 05-11-2010 09:35 AM
changing build order for SWIG extensions timothy.williams@nvl.army.mil Python 0 05-25-2005 01:31 PM



Advertisments