auxDIBImageLoad error

Posted on 2005-03-12
Medium Priority
Last Modified: 2008-01-09
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.
Question by:munchkin65
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
  • 2
LVL 48

Accepted Solution

AlexFM earned 2000 total points
ID: 13527550
Add library glaux.lib to the list of linker libraries.
LVL 48

Expert Comment

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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