Problem loading images
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.
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....
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement