Remy Muller wrote:
hi again,
still with the latest ngl, I'm having troubles compiling some examples.
the error comes from ngl.h
<code>
#ifndef GL_ARB_vertex_buffer_object
typedef ptrdiff_t GLintptrARB;
typedef ptrdiff_t GLsizeiptrARB;
#endif
</code>
<error>
syntax error: missing ';' before identifier 'GLintptrARB'
</error>
If I have well understood, this piece of code should handle the case
where these 2 typedef are not defined in <GL/glext.h> but in my case it
is already defined and the preprocessor should skip these lines as
'GL_ARB_vertex_buffer_object' is already defined.
Which glext.h are you using ? The one from the official registry reads :
#ifndef GL_ARB_vertex_buffer_object
#define GL_ARB_vertex_buffer_object 1
/* GL types for handling large vertex buffer objects */
/* Only used by this extension for now; later needs to be moved earlier
in glext.h */
#include <stddef.h>
typedef ptrdiff_t GLintptrARB;
typedef ptrdiff_t GLsizeiptrARB;
...
#endif
Which explains the piece of code in ngl.h.