texture 3d - help - error en gltexture3D

3D texture I have a problem with this codido. compile error when I pull …>>
glTexImage3D undefined reference to `@ 40 ’
I attached a residence address for those who want help and watch the code what will not stick down all the code here because it is long. s all good greetings. thanks

ARCHIVO - SOURCE

The explanation is in your code.


void init(void)
{
	glClearColor (0.0, 0.0, 0.0, 0.0);
	glShadeModel(GL_FLAT);
	glEnable(GL_DEPTH_TEST);
	makeImage();
	glEnable(GL_TEXTURE_3D);
	glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
	glGenTextures(1, &texName);
	glBindTexture(GL_TEXTURE_3D, texName);
	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP);
	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP);
	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP);
	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER,GL_NEAREST);
	glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER,GL_NEAREST);
	// VERY IMPORTANT:
	// this line loads the address of the glTexImage3D function into the function pointer of the same name.
	// glTexImage3D is not implemented in the standard GL libraries and must be loaded dynamically at run time,
	// the environment the program is being run in MAY OR MAY NOT support it, if not we'll get back a NULL pointer.
	// this is necessary to use any OpenGL function declared in the glext.h header file
	// the Pointer to FunctioN ... PROC types are declared in the same header file with a type appropriate to the function name
	//glTexImage3D = (PFNGLTEXIMAGE3DPROC) wglGetProcAddress("glTexImage3D");
	glTexImage3D(GL_TEXTURE_3D, 0, GL_RGB, iWidth, iHeight,iDepth, 0, GL_RGB, GL_UNSIGNED_BYTE, image);
	
	
}