PDA

View Full Version : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4



locomo
11-30-2002, 06:30 PM
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

nexusone
11-30-2002, 07:17 PM
Do you have linked the glaux.lib?
or have it?



Originally posted by locomo:
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

locomo
12-01-2002, 04:18 AM
Hi,
I am using the glaux lib

nexusone
12-01-2002, 04:24 AM
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

locomo
12-01-2002, 04:26 AM
hi,
i am including glaux.h
also i am using MS visual c++ version 6.0

Nick Nougat
12-01-2002, 05:01 AM
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