Solved

Build Error!!

Posted on 2002-03-18
3
902 Views
Last Modified: 2012-06-27
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)
0
Comment
Question by:rangers99
3 Comments
 
LVL 12

Accepted Solution

by:
pjknibbs earned 200 total points
Comment Utility
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.
0
 

Author Comment

by:rangers99
Comment Utility
Either have I

Ive just found the error. I didn't include the glaux.lib library (OPenGL)
0
 
LVL 3

Expert Comment

by:job_s
Comment Utility
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.







0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now