Re: Cannot build quantlib-swig python library

Posted by Bojan Nikolic on
URL: http://quantlib.414.s1.nabble.com/Cannot-build-quantlib-swig-python-library-tp7491p7495.html


raphael <[hidden email]> writes:

> Hello,
> I cannot build python.py. It cannot create quantlib_wrap_obj and thus gives the
> following error message:
>
> C:\QuantLib-SWIG-0.9.7\Python>python setup.py build
> running build
> running build_py
> running build_ext
> building 'QuantLib._QuantLib' extension
> C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
> 3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX -IC:\Python26
> \include -IC:\Python26\PC -IC:\QuantLib-0.9.7 "-IC:\Program Files\Microsoft Visu
> al Studio 9.0\VC\INCLUDE" "-IC:\Program Files\Microsoft SDKs\Windows\v6.0A\inclu
> de" -I /TpQuantLib/quantlib_wrap.cpp /Fobuild\temp.win32-2.6\Release\QuantLib/qu
> antlib_wrap.obj /GR /FD /Zm250 /MD
> cl : Ligne de commande error D8003 : nom de fichier de la source absent
> error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fa
> iled with exit status 2
>

I suspect that the empty include directory specification (-I by itself
without argument) is interfering with the file name to be compiled
argument (/TpQuantLib/quantlib_wrap.cpp).

You should adjust your compilation pre-processor search paths to make
sure this solitary -I doesn't appear and/or copy and paste the command
above removing the solitary -I.

Best,
Bojan

--
Bojan Nikolic          ||          http://www.bnikolic.co.uk

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users