auxDIBImageLoad

Levi's Avatar
Go4Expert Member
I figured this out a while ago. Thanks.
Levi

Quote:
ok, so I'm trying to write a screensaver in MVS C++ 6.0. I'm just starting, and I'm trying to learn how to work with opengl. I'm trying to apply texure to a cube, and whenever I try to batch build the program it comes back with:
Creating library Release/Screensaver.lib and object Release/Screensaver.exp
Screensaver.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Release/Screensaver.scr : fatal error LNK1120: 1 unresolved externals

However, when I just buld it in MVS it does'nt have any errors. Also, when i try to compile it not it screensaver format, it is fine. What is happening here. Thanks for any help. Here is the section of the code that is causing the error, with the exact line in bold.
Code: CPP
UX_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
        [B]return auxDIBImageLoad(Filename);[/B]   
            // Load The Bitmap And Return A Pointer
    }

    return NULL;    // If Load Failed Return NULL
}

Last edited by Levi; 27Aug2005 at 21:16..
Aiursrage2k's Avatar
Newbie Member
Just started OpenGL today, and ran into the same problem (following the nehe tuts?)... I found this forum while looking for the solution...

Anyway the solution might be to link: Glaux.lib
Levi's Avatar
Go4Expert Member
Wow, that's not bad for your first day. Yes, I believe that is what was wrong. : ) This thing has been up here a looong time, and you're the first to answer me. I was forced to figure it out myself. : ) Good luck. Oh, yes you were right, I was doing the NeHe tutorials. If you haven't already, you should go to the www.gamedev.net forums, they have lots of good stuff, and you usually always get answers.
Levi

Last edited by Levi; 2Nov2005 at 19:28..
gage's Avatar, Join Date: Apr 2007
Newbie Member
thanks. linking glaux.lib worked for me also.
DaWei's Avatar, Join Date: Dec 2006
Team Leader
Actually, there was a good reason no one responded:
Quote:
I figured this out a while ago. Thanks.
Don't know about anyone else, but I didn't read beyond the obvious statement.
offsitenoc's Avatar, Join Date: Dec 2010
Newbie Member
Wow it is great information for me It is my first post also
sleree's Avatar
Newbie Member
It is the valuable information