Problem with glTexImage3D

Hi everyone

I’m trying to load image data from .dat file then to using it as a texture, anyway

after loading the data I tried using glTexImage2D the program runs well but the output does not look like supposed to

so I’m trying to to use glTexImage3D but I get the following error

rror LNK2001: unresolved external symbol __imp____glewTexImage3D

I’m using visual studio 2008

this is the code when I’m using 2D and I’m not getting any errors

glTexImage2D(GL_TEXTURE_2D,
	             0,
		    GL_RGB,
		    sizeX, 
                        sizeY,
		    sizeZ,
		    0,
	            GL_RGB,
		    GL_UNSIGNED_BYTE,
	            TempData);

and here is the code when I try to use 3D

glTexImage3D(GL_TEXTURE_3D,
	             0,
		    GL_RGBA,
		    sizeX, 
                        sizeY,
		    sizeZ,
		    0,
	            GL_RGBA,
		    GL_UNSIGNED_BYTE,
	            TempData);

hope someone can help

thanks

That is called a linker error. From the looks of it, you need to link with the GLEW library.
Go to Project, Properties.
You need to Click on Linker Input.
Next to Additional Dependencies, add glew32.lib

Or use the #pragma directive
http://www.opengl.org/wiki/FAQ#Unresolved_External_Symbol