Problem loading images

Started by
4 comments, last by ff8 19 years, 3 months ago
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)
Advertisement
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....
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!
how can i make my own loader ??
Visit http://www.wotsit.org for details on file formats.
Killers don't end up in jailThey end up on a high-score!
thank you :)

This topic is closed to new replies.

Advertisement