[GCC-XML] #define not in result XML

JoeSB COE9 joesb.coe9 at gmail.com
Tue Oct 18 02:13:28 EDT 2005


Hi,

I have got a problem. Please advice.

When I tried to use GCCXML to Create Binding for OpenGL it doesn't work
GL function are exported but all #define constants are not exported.

I come down to this minimal header file

------  includeme.h --------------

enum {
   aaa,
   bbb,
} yoy;

#define    AN_DEF 1

------------me.cpp -----

#include "includeme.h"

-----------------------

And the command

-----------------------
gccxml.exe -fxml=me.xml me.cpp

------------------------

The result XML

------------------------

<?xml version="1.0"?>
<GCC_XML>
 <Namespace id="_1" name="::" members="_3 _4 " mangled="_Z2::"/>
 <Namespace id="_2" name="std" context="_1" members="" mangled="_Z3std"/>
 <Variable id="_3" name="yoy" type="_4" context="_1" location="f0:4"
file="f0" line="4"/>
 <Enumeration id="_4" name="$_0" context="_1" location="f0:1"
file="f0" line="1">
   <EnumValue name="aaa" init="0"/>
   <EnumValue name="bbb" init="1"/>
 </Enumeration>
 <File id="f0" name="includeme.h"/>
</GCC_XML>

------------------------

As you can see only enum is detected but #define is not.

The resulting XML file doesn't contains any reference to #define.

What other flags do I need to set?

I'm on Windows 2000 with GCCXML 0.6.

Regards,


More information about the gccxml mailing list