[Quickfix-developers] Problem building python extension on windows.
Brought to you by:
orenmnero
From: fredrik k. <fre...@gm...> - 2010-02-18 09:48:56
|
Hi! I struggle to build quickfix as an extension module on windows (It was some time ago since I done this kind of work...). In the windows source I downloaded, * qui...@li...* , I see in the QuickFixPython.cpp a include statement, "config.h" which I can't found anywere in the download and changed it to config_windows.h (which was found under /src) in a attemp to perhaps solve the problem. My environment: - windows 7, 32-bit - visual studio 2008 - my own compiled version of python 2.6. Anyway, I was able to build both quickfix and Python2.6 out of the box but when I try building QuickfixPython a lot of errors can be seen. >>> QuickfixPython.cpp(24796) : error C2872: 'INT' : ambiguous symbol could be 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\include\windef. h(172) : int INT' or 'c:\quickfix-win\quickfix\src\c++\FieldTypes.h(509) : FIX::INT' >>> >>> QuickfixPython.cpp(24199) : error C2872: 'CHAR' : ambiguous symbol could be 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\include\winnt.h (276) : char CHAR' or 'c:\quickfix-win\quickfix\src\c++\FieldTypes.h(507) : FIX::CHAR <<< etc. I haven't investigated this futher and haven't used SWIG before and hope that it is perhaps a simple solution to this. I tested using: - the ordinary distutils way - using CodeBlock - using Visual Studio (I really sucks when it comes to setup this kind of things). I also have cygwin(I also downloaded the unix source) and MinGW installed. Is there a simple solution to this problem? Perhaps just generating a new wrapper using SWIG on windows? -- Fredrik Kant -- Fredrik Kant Kant Consulting AB Mobile: +46 70 787 06 01 www.kantconsulting.se |