Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
Error in run opengl program: undefined identifier Glfloat
After changing Glfloat to float operation success but the color of the graphic  is not correct

Posted

1 solution

Instead of arbitrarly change the type, you should include the appropirate header file (gl.h) in order to fix the error.
 
Share this answer
 
Comments
rfp-20 22-Oct-13 10:23am    
I have included the header file (gl.h) in my file practiceView.cpp, but the error: undefined identifier Glfloat is still exist.
CPallini 22-Oct-13 13:44pm    
Probably because you used Glfloat while gl.h defines GLfloat (with uppercase L).
rfp-20 23-Oct-13 11:08am    
You are right! thank you very much!
CPallini 23-Oct-13 13:41pm    
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900