fourthskyinteractive / oglshell

Automatically exported from code.google.com/p/oglshell
0 stars 0 forks source link

Problem while compiling #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Compiler: MSC (with 8.0 version)
File: GL/Caps.h near line 224

#ifdef __MSC__
            glGetIntegerv(
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV,
&Desc->MaxTransformFeedbackInterleavedAttribs );
        #else
            // There maybe a bug in GCC 4.1.2 compiler:
'GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV’ was not declared in this
scope'.
            glGetIntegerv( 0x8C8A,
&Desc->MaxTransformFeedbackInterleavedAttribs );
        #endif //__MSC__

Output: 
error C2065: 'GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV' :
undeclared identifier
(No other error)

So, sometimes, it doesn't compiling with MSC :) . May be it's my fault, but
you have commented problem near it with GCC. 

P.S. I haven't found that constant (define) in *gl* headers (extensions too).

Original issue reported on code.google.com by fivestar...@gmail.com on 1 Nov 2008 at 4:58

GoogleCodeExporter commented 9 years ago
In latest version of glew for win32 token
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV is exists, so try to download 
latest
version. For same version of glew, but for linux, token is exists too, I verify 
that,
but GCC compiler do not see this token, I do not understand why :(

Original comment by victor.c...@gmail.com on 1 Nov 2008 at 7:39