SOS: need for code to return image data from bmp

well, this is NeHe’s code for this function, I could’t get it to work ( problem linking ( one unresolved external auxDIBImageLoadA@4)
if someone has code equivalent to this please i would apreciate it:

AUX_RGBImageRec *LoadBMP(char *Filename)
{
FILE *File=NULL;

File=fopen(Filename,“r”);

if(File)
{
fclose(File);
return auxDIBImageLoad(Filename);
}
return NULL;
}

You probably need to link in glaux.lib or some such thing (I don’t know exactly, I don’t do Windows).

Yes, rts is right. You need to link glaux in.

With VC++ 6.0 go to the project settings, and in the linker tab add glaux.lib to the list. It should work now.

OK Thanks a lot! You rule!