Hi
It compiles on Linux/Mac but on Windows I get the errors below.
Many thanks
Michael
…\main.cpp:50:15: error: ‘GL_CURRENT_PROGRAM’ was not declared in this scope
…\main.cpp:51:15: error: ‘GL_FRAMEBUFFER_BINDING_EXT’ was not declared in this scope
…\main.cpp:61:22: error: ‘GL_FRAMEBUFFER_EXT’ was not declared in this scope
…\main.cpp:61:45: error: ‘glBindFramebufferEXT’ was not declared in this scope
…\main.cpp:68:15: error: ‘glUseProgram’ was not declared in this scope
…\main.cpp: In function ‘int XPluginEnable()’:
…\main.cpp:269:15: error: ‘GL_RENDERBUFFER_BINDING_EXT’ was not declared in this scope
…\main.cpp:270:15: error: ‘GL_FRAMEBUFFER_BINDING_EXT’ was not declared in this scope
…\main.cpp:285:36: error: ‘glGenRenderbuffersEXT’ was not declared in this scope
…\main.cpp:286:23: error: ‘GL_RENDERBUFFER_EXT’ was not declared in this scope
…\main.cpp:286:53: error: ‘glBindRenderbufferEXT’ was not declared in this scope
…\main.cpp:287:47: error: ‘GL_DEPTH_COMPONENT32’ was not declared in this scope
…\main.cpp:287:77: error: ‘glRenderbufferStorageEXT’ was not declared in this scope
…\main.cpp:290:29: error: ‘glGenFramebuffersEXT’ was not declared in this scope
…\main.cpp:291:22: error: ‘GL_FRAMEBUFFER_EXT’ was not declared in this scope
…\main.cpp:291:45: error: ‘glBindFramebufferEXT’ was not declared in this scope
…\main.cpp:292:47: error: ‘GL_COLOR_ATTACHMENT0_EXT’ was not declared in this scope
…\main.cpp:293:28: error: ‘glFramebufferTexture2DEXT’ was not declared in this scope
…\main.cpp:294:50: error: ‘GL_DEPTH_ATTACHMENT_EXT’ was not declared in this scope
…\main.cpp:295:31: error: ‘glFramebufferRenderbufferEXT’ was not declared in this scope
…\main.cpp: In function ‘void XPluginDisable()’:
…\main.cpp:307:32: error: ‘glDeleteFramebuffersEXT’ was not declared in this scope
…\main.cpp:309:39: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
Try defining GLEW_STATIC while building and try rearranging your linking order, building on windows can be sensitive to the order the OpenGL/glew related libs are added to the linker.
Yes I do link: opengl - glu - glew32s and defined static. Still the same with Eclipse/MingW on Vista. But I got the very same working in VC2008. Any more ideas? Thanks.