Detailed description: I was trying to trying to build a component that uses glib library. but when
compiling I got this error:
[java] Exception in thread "main" java.lang.Error: java.lang.Exception:
org.objectweb.think.codegen.lang.c.parser.visitor.CToCodeGenTranslator$ParseError:
error: /usr/include/glib-2.0/glib/gscanner.h:81:3: error: enumerator value for
'G_TOKEN_LEFT_PAREN' is not an integer constant
gscanner.h contains this line:
typedef enum
{
...
G_TOKEN_LEFT_PAREN = '(',
...
apparently glib uses characters for enumeration and codegen do not recognize
that. When I changed the gscanner.h file and used integers in the place of
characters the example worked.