[GCC-XML] Problem parsing sdl.h

Brad King brad.king at kitware.com
Mon Jan 10 09:23:35 EST 2005

James Fowler wrote:
> As far as fixing it, if you don't actually need to know about ____cdecl
> or __stdcall , find out what SDLCALL ends up expanding to and make it go
> away for gccxml. For instance, if SDLCALL expands to __cdecl, try adding
> in something like
>    #ifdef GCCXML_PARSE
>    #define __cdecl
>    #endif

GCC-XML automatically provides "-D__GCCXML__" when it is parsing the 
source (in current CVS version).

As far as your original error, try running GCC-XML with the "-E" option 
to look at the preprocessed version of the source that GCC-XML is trying 
to parse.  That may reveal the source of the problem on that line.


More information about the gccxml mailing list