[GCC-XML] Parsing MS gdiplus.h with gccxml

Thomas Heller theller at python.net
Thu Oct 28 15:10:54 EDT 2004


GdiPlus.h uses 'forward declaration' of enums, like this:

enum EmfPlusRecordType;
...
enum EmfPlusRecordType
{
    WmfRecordTypeSetBkColor              = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETBKCOLOR),
    WmfRecordTypeSetBkMode               = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETBKMODE),
    WmfRecordTypeSetMapMode              = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETMAPMODE),
[...]

gccxml complains:

C:\sf\buildgcc\bin\release>gccxml x.c
In file included from C:/Programme/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Include/gdiplus.h:34,
                 from x.c:2:
C:/Programme/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Include/GdiplusEnums.h:534: error: use
   of enum `EmfPlusRecordType' without previous declaration
C:/Programme/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Include/GdiplusEnums.h:534: error: `
   extern' can only be specified for objects and functions

Is there any way to let gccxml accept this?

Thanks,  Thomas




More information about the gccxml mailing list