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

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.
  • 2
1 Solution
Add library glaux.lib to the list of linker libraries.
If you are working with VC++ 6.0, this should be done in Project - Settings - Link - Object/library modules.

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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