Sign in to follow this  

Location of glEnableClientState()

This topic is 2337 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

[size="2"]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 :

"[/size][size="2"]missing type specifier - int assumed. Note: C++ does not support default-int[/size]

[size="2"] error C2365: 'glEnableClientState' : redefinition; previous definition was 'function'[/size]

[size="2"]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 :

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

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

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

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

[/color][/font][/color][/font][/color][/font][/size]

[font="Consolas"][size="2"][color="#a31515"][font="Consolas"][size="2"][color="#a31515"][font="Consolas"][size="2"][color="#a31515"][/color][/size][/font][/color][/size][/font][/color][/size][/font][/size]

Share this post


Link to post
Share on other sites

This topic is 2337 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.

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