So i have my class that will handle graphic for my game:
Code:class Graphic { public: GLuint *Texture; int TextureAmount; vector<char*> ImageName; Graphic(); Graphic(int textureAmount); ~Graphic(); bool LoadInformation ( char* fileName ); // load the file that contains direction of the images will be load AUX_RGBImageRec *LoadBMP(char *fileName); // load bitmap images from external file bool LoadTextures(); };
Then after implement the AUX_RGBImageRec() function, I got an external error and dont know how to solve it.Code:AUX_RGBImageRec *Graphic::LoadBMP(char *fileName) { FILE *file = NULL; //file handle if ( !fileName ) //make sure the file name is given return NULL; //if not, quit the function file = fopen(fileName, "r"); //check to see if the file exist if ( file ) { fclose(file); //close the handle return auxDIBImageLoad(fileName); // Load The Bitmap And Return A Pointer } return NULL; //if fail to load, then return null }
Error:
Can someone point out what i did wrong. Thank you very muchCode:Graphic.obj : error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "public: struct _AUX_RGBImageRec * __thiscall Graphic::LoadBMP(char *)" (?LoadBMP@Graphic@@QAEPAU_AUX_RGBImageRec@@PAD@Z)



LinkBack URL
About LinkBacks



