|
From: | Vincent Caron |
Subject: | Re: [ngl-devel] ngl.h |
Date: | Fri, 28 Nov 2003 17:24:48 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030903 Thunderbird/0.2 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |