Jump to content
Eternal Lands Official Forums
Sign in to follow this  
duran

gl init troubles

Recommended Posts

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

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

nada, no c++ files there :D

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

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

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 :devlish:

Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×