Re: QuantLib Python Bindings - Windows
Posted by
ElMariachi on
URL: http://quantlib.414.s1.nabble.com/QuantLib-Python-Bindings-Windows-tp1064p1068.html
Able to make some progress with the compiler issue - turns out my installation of Python had a distutils.cfg file which was setting default compiler to be mingw32. After removing this file, Python correctly attempts to use the CL.exe from VS2008. Now I am getting some errors finding the boost libraries - this is the latest output:
PS C:\Users\lcota\workspace\quantlib\Quantlib-SWIG\python> python setup.py build
running build
running build_py
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__ -DWIN3
2 -DNDEBUG -D_WINDOWS -DNOMINMAX -IC:\Python26\include -IC:\Python26\PC -Ic:\Users\lcota\workspace\quantlib\QuantLib /Tp
QuantLib/quantlib_wrap.cpp /Fobuild\temp.win32-2.6\Release\QuantLib/quantlib_wrap.obj /GR /FD /Zm250 /EHsc /MD
cl : Command line warning D9024 : unrecognized source file type 'c:\boost\boost_1_44', object file assumed
cl : Command line warning D9027 : source file 'c:\boost\boost_1_44' ignored
quantlib_wrap.cpp
c:\Users\lcota\workspace\quantlib\QuantLib\ql/qldefines.hpp(29) : fatal error C1083: Cannot open include file: 'boost/co
nfig.hpp': No such file or directory
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2
Luigi Ballabio wrote
On Wed, 2010-09-15 at 05:05 -0700, newbie730 wrote:
> I have VC++ 2008 installed - how can I make sure python distutils finds it?
On my machine, distutils looks for "C:\Program Files\Microsoft Visual
Studio 9.0\VC\BIN\cl.exe" which, I think, is the default location; I
didn't have to set anything myself.
If you have it installed elsewhere, I'm afraid I can't be of much
help---you might want to search the distutils docs, or ask on some
Python list.
Luigi
--
A programming language is low-level when its programs require attention
to the irrelevant.
-- Alan Perlis
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users