Archived

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

Saber

Opengl-problems

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
Okej, thx...
By the way? Were can I get the file? so it will work for Borland c++ ?

Edited by - Saber on February 19, 2002 8:42:27 AM

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
Yea, I tougth about taking my gl.h from home to school. It should work...

I''''m a newbie and Relly don''''t know anything. =)

Share this post


Link to post
Share on other sites