[GCC-XML] Processing boost python

Brad King brad.king at kitware.com
Thu Aug 11 18:08:51 EDT 2011


On 8/11/2011 7:23 AM, Fabio Ticconi wrote:
> Hi there, I've been trying unsuccessfully to build a module of python
> ogre, ogreforests, and I get this error:
>
> http://pastebin.com/2G3D1AhA

The invocation you are using is of the form

   .../gccxml  ... -D"WIN32" ...

This activates boost's Windows features:

> #if !defined( BOOST_USE_WINDOWS_H )
>    extern "C" void __stdcall Sleep( unsigned ms );
> #endif

The __stdcall calling convention is specific to Windows.  The gccxml
parser knows nothing about it unless gccxml is simulating the MS
preprocessor, but that is supported only when the host environment
is Windows and the MS compiler is installed.

Since you don't actually care about the Sleep API and just want to
get the code through gccxml, I suggest adding "-D__stdcall=" to the
invocation.  That will preprocess out the part that gccxml does not
understand.

-Brad



More information about the gccxml mailing list