Link to home
Create AccountLog in
C++

C++

--

Questions

--

Followers

Top Experts

Avatar of rangers99
rangers99

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:

auxDIBImageLoad(...)

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

     File=fopen(Filename,"r");              
     if (File)                              
     {
          fclose(File);
           return auxDIBImageLoad(Filename);        
     }

     return NULL;                        
}

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

Linking...
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)

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of pjknibbspjknibbs

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of rangers99rangers99

ASKER

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.








Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

C++

C++

--

Questions

--

Followers

Top Experts

C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.