Learn how to Make Money Online | Free Tech Magazines
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Queries and Discussion > Programming > C-C++

Reply Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 
 
Bookmarks Thread Tools Search this Thread Display Modes
Old 01-07-2005, 12:08 AM   #1
Levi
Go4Expert Member
 
Join Date: Aug 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Levi is on a distinguished road
Wink

auxDIBImageLoad


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; 08-27-2005 at 10:16 PM.
Levi is offline   Reply With Quote
Old 11-02-2005, 11:37 AM   #2
Aiursrage2k
Newbie Member
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Aiursrage2k is on a distinguished road

Re: auxDIBImageLoad


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
Aiursrage2k is offline   Reply With Quote
Old 11-02-2005, 07:20 PM   #3
Levi
Go4Expert Member
 
Join Date: Aug 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Levi is on a distinguished road

Re: auxDIBImageLoad


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
__________________
The Bird went in search of the Cage. --Franz Kafka

Backyard Productions(my website)

Last edited by Levi; 11-02-2005 at 07:28 PM.
Levi is offline   Reply With Quote
Old 04-27-2007, 08:11 AM   #4
gage
Newbie Member
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gage is on a distinguished road

Re: auxDIBImageLoad


thanks. linking glaux.lib worked for me also.
gage is offline   Reply With Quote
Old 04-27-2007, 08:39 AM   #5
DaWei
Team Leader
 
DaWei's Avatar
 
Join Date: Dec 2006
Location: Texan now in Central NY
Posts: 834
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 3
DaWei is on a distinguished road

Re: auxDIBImageLoad


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.
__________________
DaWei on Pointers Grumpy on C++ Exceptions
Functionality rules; clarity matters. If you can work a little elegance in there, you're stylin'.
DaWei is offline   Reply With Quote
Reply Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Bookmarks

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

 

All times are GMT +5.5. The time now is 04:52 AM.