PDA

View Full Version : Compile error



c0d3Junk3Y
02-16-2004, 11:05 AM
I am getting a compile error. Error is "undefined function glGenTextures"
"undefined function glBindTexture"

Both are defined as follows in my program glGenTextures(sizeof(Texture), &texture[0]);

glBindTexture(GL_TEXTURE_2D, texture[loop]);

This program comes from http://nehe.gamedev.com Lesson 38 .

I am compiling on Borland C++ v5.02
Any thoughts or ideas as to why it won't compile, send em on.

Send all flames to /dev/null

chowe6685
02-16-2004, 12:24 PM
sounds like you have a really old (1.0) header file before texture objects. You should look at this link http://members.cox.net/scottheiman/opengl.htm
it will help and explains in better detail than I can

john
02-18-2004, 11:01 PM
I am compiling on Borland C++ v5.02
Send all flames to /dev/null

I don't know what I find more amusing.. the fact that you're using Windows, or that you also (in the same breath) use a Unix in-joke

:-)