This post was updated on .
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' |
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' |
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 ------------------------------------------------------------------------------ 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 |
didnt work. I even changed the line to extra_link_args = ['/subsystem:windows', '/machine:AMD64'], but i'm getting a similar error now, although seems like the importing went one step further down:
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:\An aconda1\include -IC:\Anaconda1\PC -IC:\Users\nick1\Documents\software\QuantLi b-1.5 -IC:\Boost\boost_1_57_0 /TpQuantLib/quantlib_wrap.cpp /Fobuild\temp.win-am d64-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 mismatc h 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\nick1\Documents\software\QuantLib-1.5\lib /LIBPATH:C:\Boost\ boost_1_57_0\libs /LIBPATH:C:\Users\nick1\Documents\software\QuantLib-1.5\lib /EXPORT:init_QuantLib build\temp.win-amd64-2.7\Release\QuantLib/quantlib_wrap.o bj /OUT:build\lib.win-amd64-2.7\QuantLib\_QuantLib.pyd /IMPLIB:build\temp.win-am d64-2.7\Release\QuantLib\_QuantLib.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Re lease\QuantLib\_QuantLib.pyd.manifest /subsystem:windows /machine:AMD64 build\temp.win-amd64-2.7\Release\QuantLib/quantlib_wrap.obj : fatal error LNK111 2: module machine type 'X86' conflicts with target machine type 'x64' error: command 'c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\l ink.exe' failed with exit status 1112 |
Hi, sorry I dropped the ball on this one, but I don't have a Windows box to experiment on. Were you able to make any progress? Luigi On Wed, Feb 11, 2015 at 4:01 PM, nickR1 <[hidden email]> wrote: didnt work. I even changed the line to extra_link_args = ------------------------------------------------------------------------------ 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 |
Free forum by Nabble | Edit this page |