Link to home
Start Free TrialLog in
Avatar of munchkin65
munchkin65

asked on

auxDIBImageLoad error

I am doing a project for my senior design lab and need to do texture mapping.  I used the NeHe tutorial before and had no problems.  I was always able to use the tutorial with auxDIBImageLoad with no problems.  For some reason, the current project that I am working on keeps giving these errors with this function:
error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
fatal error LNK1120: 1 unresolved externals

This is what I have:
AUX_RGBImageRec *LoadBMP(char *Filename)                    // Loads A Bitmap Image
{
     FILE *File=NULL;                                             // File Handle

     if (!Filename)                                                  // Make Sure A Filename Was Given
          return NULL;                                             // If Not Return NULL

     File=fopen(Filename,"r");                                   // Check To See If The File Exists

     if (File) {                                                       // Does The File Exist?
          fclose(File);                                             // Close The Handle
          return auxDIBImageLoad(Filename); }               // Load The Bitmap And Return A Pointer
     
     return NULL;                                                  // If Load Failed Return NULL
}

Any suggestions for how to fix this error?  I know it isn't a problem with the libraries because this exact statement is working perfectly in two other programs I have.  This project is due soon so the problem is urgent.
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlexFM
AlexFM

If you are working with VC++ 6.0, this should be done in Project - Settings - Link - Object/library modules.