Skip to main content
gamedev.net
🔒 Locked

Need help

Started by GhostGL 3 replies 1.3k views
Original Post
GhostGL
GhostGL
Hello, I'm getting the following error. Game.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4 now heres my delima. I downloaded an ran lesson 6 and it compiles and runs fine, I even added multiple bitmaps to it and it still ran fine. but when I tried to add the open/load/bind code of a bitmap to my simple game, i get the error described above. Is there something That I am not includeing in my game file that lesson 6 included? cause its sorta wierd to have one file work but the second file gives an error when its the same code. I get this error on the following line of code indicated by the ->.. Im including the function its in, to put it in context of the code in lesson 6. AUX_RGBImageRec *LoadBMP(char *Filename) ... if (File) { fclose(File); -> retun auxDIBImageLoad(Filename); } ... what am i doing wrong thats not allowing me to properly load the bitmap? any help would be appricated. I do have all the same #includes in my file as lesson 6. -GhostGL apparently the noob of the day ; )
xiuhcoatl
xiuhcoatl
The problem is that you need a library that has the _auxDIBImageLoadA@4 symbol in it. I would look at the included libraries for the Lesson 6 project, and make sure you are linking with them in your new project. I dont have enough details to give you specific instuctions but a search through your IDE documentation for "Linked libraries" "Additional Libraries" "-L"(unix) should give you the data.


Hope that helps,


#dth-0
"C and C++ programmers seem to think that the shortest distance between two points is the great circle route on a spherical distortion of Euclidean space."Stephen Dewhurst
GhostGL
GhostGL
have all the same libraries as lesson 6 has.
GhostGL
GhostGL
was sugested to try to switch out glaux to glaux32 but not sure where to get the glaux32 file. any sugestions?

-GhostGL
ProPuke
ProPuke
xiuhcoatl was correct.
"unresolved external symbol" means it couldn't find the source that the symbol(name used) points to. This is because the library it is contained in is not being compiled with your project.
Be aware that including headers & linking libraries are not the same thing. You'll need to go into the project settings for your ide (or similiar) & add glaux to the list of libraries, or something like that. The name you have to use might be different
____ _ ___ ___ __ _`By offloading cognitive load to the computer, programmers are able to design more elegant systems' - Unununium OS regarding Python

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.