• Advertisement
Sign in to follow this  

Location of glEnableClientState()

This topic is 2426 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi there m8s .

i'v got a problem with this function .

i'm using Visual C++ 2010 Exprss to practice openGL under glut (freeglut)

when i use this function out of main() loop , it takes an error that says :

"missing type specifier - int assumed. Note: C++ does not support default-int

error C2365: 'glEnableClientState' : redefinition; previous definition was 'function'

see declaration of 'glEnableClientState'


note that using this function (or relevant funcs) in main() , does not return error but it also doesnt work !

the included files :

[font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<windows.h>[/font][/font][/font][font="Consolas"][color="#0000ff"]

[/font][font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<GL\GLU.h>[/font][/font][/font]

[font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<gl\GL.h>[/font][/font][/font]

[font="Consolas"] [/font][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"][font="Consolas"][color="#a31515"]<GL\freeglut.h>



Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement