Skip to main content
gamedev.net
🔒 Locked

Problem loading images

Started by Sir Sapo Jan 7, 2005 at 10:42 AM 4 replies 950+ views
Original Post
Sir Sapo
Sir Sapo
i am trying to get Nehe's BMP Loading code to work in my Program but when I compile I keep getting the error, undefined reference to 'auxDIBImageLoadA@4' What is wrong with the code , I copy and pasted directly from the Tutorial, so I dont know whats going on.
My Current Project Angels 22 (4E5)
_the_phantom_
_the_phantom_
thats a linker error, you need to link glaux.lib into your application.

HOWEVER, the aux library is outdated rubbish, get a better imaging loading library such as
- DevIL
- Corona (C++ style)
- Freelibrary

or even just roll your own if you fancy remaking the wheel....
nife
nife
Quote:
Original post by Sir Sapo
i am trying to get Nehe's BMP Loading code to work in my Program but when I compile I keep getting the error,

undefined reference to 'auxDIBImageLoadA@4'

What is wrong with the code , I copy and pasted directly from the Tutorial, so I dont know whats going on.


Well, first of all you have to link with the glaux library (don't know it's name though, because I've never used it). But that's your current problem.
Secondly, I would strongly advise you to either use an existing library or make your own image loader (not hard at all), because glaux has quite a few memory leaks.
Killers don't end up in jailThey end up on a high-score!
ff8
ff8
how can i make my own loader ??
nife
nife
Visit http://www.wotsit.org for details on file formats.
Killers don't end up in jailThey end up on a high-score!
ff8
ff8
thank you :)

Topic Locked

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

Sign in to reply to this topic.