Compiling SWIG Extensions With VC2008 and VC2010 Both Installed

Discussion in 'Python' started by ElMariachi, Sep 17, 2010.

  1. ElMariachi

    ElMariachi Guest

    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-SWI...C2010-Both-Installed-tp29739343p29739343.html
    Sent from the Python - python-list mailing list archive at Nabble.com.
    ElMariachi, Sep 17, 2010
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Giri
    Replies:
    1
    Views:
    402
    Peter Blum
    Dec 24, 2004
  2. Replies:
    3
    Views:
    453
    Jason
    Apr 28, 2008
  3. Jag
    Replies:
    5
    Views:
    321
    Paul Bibbings
    Jul 17, 2010
  4. Replies:
    0
    Views:
    295
  5. sharat

    Upgrade to VC2010

    sharat, Dec 1, 2011, in forum: C++
    Replies:
    2
    Views:
    597
    Anand Hariharan
    Dec 1, 2011
Loading...

Share This Page