Re: Problems getting started with gluten
Posted by Wade Walker on Jan 24, 2012; 1:49am
URL: https://forum.jogamp.org/Problems-getting-started-with-gluten-tp3679814p3683555.html
The "unexpected token" error is what ANTLR says when the file it's parsing doesn't match the grammar it's using. This could mean that the header file you're trying to create a JNI interface for may contain some feature of C that the GlueGen parser doesn't properly support.
My suggestion would be to make a copy of your input header file, then edit it to remove the "extern" keywords which seem to be causing the errors, and run GlueGen again. If the errors go away, examine the resulting JNI interface to see if it's correct. If so, we may need to extend the GlueGen grammar a bit.