Jump to content
  • Advertisement
Sign in to follow this  
rosicky2005

Read file and map to the texture

This topic is 4305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Once I use the following coding:


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
}
this error occurs,

saxpy error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PAD@Z)

Can anyone help me?

Share this post


Link to post
Share on other sites
hi you,

you should declare: glaux.lib library in project(project->settings->link->General->Objects/library modules)

hope help you

Share this post


Link to post
Share on other sites
Quote:
Original post by thuong
hi you,

you should declare: glaux.lib library in project(project->settings->link->General->Objects/library modules)

hope help you


Thx really. But I am not using Visual C++, I am using Visual Studio.Net.
So, what should I do to add a library?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!