Archived

This topic is now archived and is closed to further replies.

Opengl-problems

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

Hello, When I try to compile and run nehe''s opengl programs that uses textures I get 2 error. I know that the compiler isn''t the thing. I''m useing Borland c++ The error I get are: Info :Compiling C:\DL\LESSON06\LESSON06\lesson06.cpp Error: lesson06.cpp(76,16):Call to undefined function ''glGenTextures'' Error: lesson06.cpp(80,16):Call to undefined function ''glBindTexture'' Error: lesson06.cpp(117,16):Call to undefined function ''glBindTexture'' Could I have an old gl.h file? I use the glut version. I''''m a newbie and Relly don''''t know anything. =)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
> Could I have an old gl.h file

Yes, you need to update it. Also make sure that your lib files are up to date.

Share this post


Link to post
Share on other sites
I tried lookeing there but I gave up and whent home to where it workes. I have to tell the school to upgrade. =) Untill then I guess I have to use Solaris and glut...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Normally, the gl.h file is not compiler dependent, not even platform dependent. I had the same problem, when I tried to compile my Unix OpenGL code under Windows the first time. I just used the gl.h from Linux. Worked fine. Just make sure to have up to date .lib files, since they are Windows specific.

Share this post


Link to post
Share on other sites