Solved

Build Error!!

Posted on 2002-03-18
3
908 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
pjknibbs earned 200 total points
ID: 6876172
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
ID: 6876180
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
ID: 6876182
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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

623 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