error LNK2001: unresolved external symbol _auxDIBImageLoadA@4

hi, i am following nehe’s tutorial on
texture mapping and loading a bmp file
whenver i do this and save it and compile, it compiles alright but gives me the link error that auxDIBImageLoad is an unresolved
external symbol. Also if i comment
out that line it compiles and links too

if (File){

fclose(File); //
return auxDIBImageLoad(Filename);
}
any suggestions will be appreciated

Do you have linked the glaux.lib?
or have it?

Originally posted by locomo:
[b]hi, i am following nehe’s tutorial on
texture mapping and loading a bmp file
whenver i do this and save it and compile, it compiles alright but gives me the link error that auxDIBImageLoad is an unresolved
external symbol. Also if i comment
out that line it compiles and links too

if (File){

fclose(File); //
return auxDIBImageLoad(Filename);
}
any suggestions will be appreciated[/b]

Hi,
I am using the glaux lib

Have you include the glaux.h file?

Do you have the correct version for your compiler?

Originally posted by locomo:
Hi,
I am using the glaux lib

hi,
i am including glaux.h
also i am using MS visual c++ version 6.0

Hmm this can only mean you are not using the lib or the corect .h file, so to be sure (if you don’t do it that way already) Use
#pragma comment (lib, “glaux.lib”) in the file where the function is used…

Also be sure you put this statement and the #include for glaux.h after any #include “stdafx.h” statement as this cancels any previous includes etc.

That’s the only thing I can think of…

Nick