duran Report post Posted November 29, 2005 In file included from elc/global.h:124, from elc/3d_objects.c:7: elc/gl_init.h:67: error: syntax error before "GLsizeiptrARB" elc/gl_init.h:79: error: syntax error before '*' token elc/gl_init.h:79: error: `GLhandleARB' declared as function returning a function elc/gl_init.h:80: error: syntax error before "shader" elc/gl_init.h:81: error: syntax error before "shader" elc/gl_init.h:82: error: syntax error before '*' token elc/gl_init.h:82: error: `GLhandleARB' declared as function returning a function elc/gl_init.h:83: error: syntax error before "program" elc/gl_init.h:84: error: syntax error before "program" elc/gl_init.h:85: error: syntax error before "program" elc/3d_objects.c: In function `draw_3d_object_detail': elc/3d_objects.c:108: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c:108: error: (Each undeclared identifier is reported only once elc/3d_objects.c:108: error: for each function it appears in.) elc/3d_objects.c: In function `draw_3d_object': elc/3d_objects.c:278: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c: In function `load_e3d_detail': elc/3d_objects.c:1101: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c:1102: error: `GL_STATIC_DRAW_ARB' undeclared (first use in this function) elc/3d_objects.c: In function `compute_clouds_map': elc/3d_objects.c:1198: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c:1199: error: `GL_STATIC_DRAW_ARB' undeclared (first use in this function) Share this post Link to post Share on other sites
Learner Report post Posted November 29, 2005 In file included from elc/global.h:124, from elc/3d_objects.c:7: elc/gl_init.h:67: error: syntax error before "GLsizeiptrARB" elc/gl_init.h:79: error: syntax error before '*' token elc/gl_init.h:79: error: `GLhandleARB' declared as function returning a function elc/gl_init.h:80: error: syntax error before "shader" elc/gl_init.h:81: error: syntax error before "shader" elc/gl_init.h:82: error: syntax error before '*' token elc/gl_init.h:82: error: `GLhandleARB' declared as function returning a function elc/gl_init.h:83: error: syntax error before "program" elc/gl_init.h:84: error: syntax error before "program" elc/gl_init.h:85: error: syntax error before "program" elc/3d_objects.c: In function `draw_3d_object_detail': elc/3d_objects.c:108: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c:108: error: (Each undeclared identifier is reported only once elc/3d_objects.c:108: error: for each function it appears in.) elc/3d_objects.c: In function `draw_3d_object': elc/3d_objects.c:278: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c: In function `load_e3d_detail': elc/3d_objects.c:1101: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c:1102: error: `GL_STATIC_DRAW_ARB' undeclared (first use in this function) elc/3d_objects.c: In function `compute_clouds_map': elc/3d_objects.c:1198: error: `GL_ARRAY_BUFFER_ARB' undeclared (first use in this function) elc/3d_objects.c:1199: error: `GL_STATIC_DRAW_ARB' undeclared (first use in this function) Hint #1, check to make sure that ALL FILES except the Cal3D_wrapper are setup to be compiled by C. Dev-C++ has a habit that once it sees a c++ file, it thinks anything added to the project afterwards is C++, even if the extension is .C Share this post Link to post Share on other sites
duran Report post Posted November 30, 2005 nada, no c++ files there i compile the wrapper in a stand alone prosess and then fold it in later on... maybe i should have changed that... Share this post Link to post Share on other sites
Zep Report post Posted December 1, 2005 Maybe the gl headers need updating? Share this post Link to post Share on other sites
duran Report post Posted December 1, 2005 damn, i hope not. i have checked but i cant find a updated package for the GL stuff in the dev-c++ updater. that is unless i have to change over to one of those openglut or freeglut... Share this post Link to post Share on other sites
duran Report post Posted December 1, 2005 well looks like maybe my opengl package for dev-c++ had gotten corrupted... removing and reinstalling it seems to have taken care of the problem... but now i cant get the stuff to link. something about cal3d_wrapper not finding what it needs Share this post Link to post Share on other sites
Zep Report post Posted December 2, 2005 ah pesky cal3d_wrap, Given me some issues on mingw, had to hack up a makefile badly to get a compile working, without an cal3d_wrapper.dll. Share this post Link to post Share on other sites
duran Report post Posted December 2, 2005 *meep*... Share this post Link to post Share on other sites
Lachesis Report post Posted December 17, 2005 Don't worry, those errors certainly are just due to an outdated or missing glext.h. You can download a recent version at SGI.com: http://oss.sgi.com/projects/ogl-sample/ABI/glext.h The file needs to be placed in the includes/GL/ subdirectory of Dev-Cpp Share this post Link to post Share on other sites