• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 913
  • Last Modified:

Build Error!!

Output from BUILD shown at the bottom of this message

Funny thing is the source file compiles OK. Its only when I try and BUILD the executeable.

Im a beginner at this stuff.
It looks as though it has something to do with this function:


AUX_RGBImageRec *CGlView::LoadBMP(char *Filename)                    // Loads A Bitmap Image
     FILE *File=NULL;          
     if (!Filename)                              {
          return NULL;                         }

     if (File)                              
           return auxDIBImageLoad(Filename);        

     return NULL;                        

Anyone have any ideas. I dont have a flippin clue.

GlView.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Debug/DlgOgl.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

DlgOgl.exe - 2 error(s), 0 warning(s)
1 Solution
The error means that you have no definition for the _auxDIBImageLoad function in any of the source files or libraries you're linking into the project. It doesn't occur when you compile just the source file on its own because the compiler doesn't care about unresolved functions--it's the linker which sorts those out.

Why are you using this function anyway? You presumably found it in a programming sample or a textbook somewhere, but I've never heard of it.
rangers99Author Commented:
Either have I

Ive just found the error. I didn't include the glaux.lib library (OPenGL)
auxDIBImageLoad is Ur function or any library function?
Linker can't find the definision for the auxDIBImageLoad()
function.If its from any library please include the lib to the project or check is there any #define s needed for this particular function.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now