Re: installing quantlib with python SWIG bindings

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/installing-quantlib-with-python-SWIG-bindings-tp16260p16264.html

I'm guessing that the '/machine:I386' passed to the compiler is messing things up. May you try removing it from the list of extra_link_args in setup.py, line 132 and see what happens?

Luigi


On Wed, Feb 11, 2015 at 3:43 AM, nickR1 <[hidden email]> wrote:
actually the error I am getting is the following (needed to update quantlib
SWIG to 1.5  since i had an old version). I dont understand why the system
complains since I performed all the steps to compile a 64bit version of
quantlib. Is there any way to check that my compiled library is indeed
64bit?


running build
running build_py
copying QuantLib\QuantLib.py -> build\lib.win-amd64-2.7\QuantLib
running build_ext
building 'QuantLib._QuantLib' extension
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo
/Ox /MD /W3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX
-IC:\Anaconda1\include -IC:\Anaconda1\PC
-IC:\Users\stathis1\Documents\software\QuantLib-1.5 -IC:\Boost\boost_1_57_0
/TpQuantLib/quantlib_wrap.cpp
/Fobuild\temp.win-amd64-2.7\Release\QuantLib/quantlib_wrap.obj /GR /FD
/Zm250 /EHsc /MD
quantlib_wrap.cpp
C:\Boost\boost_1_57_0\boost/type_index.hpp(37) : warning C4068: unknown
pragma
QuantLib/quantlib_wrap.cpp(13920) : warning C4018: '<' : signed/unsigned
mismatch
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL
/nologo /INCREMENTAL:NO /LIBPATH:C:\Anaconda1\libs
/LIBPATH:C:\Anaconda1\PCbuild\amd64
/LIBPATH:C:\Users\stathis1\Documents\software\QuantLib-1.5\lib
/LIBPATH:C:\Boost\boost_1_57_0\libs
/LIBPATH:C:\Users\stathis1\Documents\software\QuantLib-1.5\lib
/EXPORT:init_QuantLib
build\temp.win-amd64-2.7\Release\QuantLib/quantlib_wrap.obj
/OUT:build\lib.win-amd64-2.7\QuantLib\_QuantLib.pyd
/IMPLIB:build\temp.win-amd64-2.7\Release\QuantLib\_QuantLib.lib
/MANIFESTFILE:build\temp.win-amd64-2.7\Release\QuantLib\_QuantLib.pyd.manifest
/subsystem:windows /machine:I386
python27.lib(python27.dll) : fatal error LNK1112: module machine type 'x64'
conflicts with target machine type 'X86'




--
View this message in context: http://quantlib.10058.n7.nabble.com/installing-quantlib-with-python-SWIG-bindings-tp16260p16261.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



--

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users