Advertisement

Lesson 6

Started by September 18, 2003 07:48 AM
2 comments, last by trager 20 years, 6 months ago
Hi I''m new to OpenGL and to be honest I haven''t done much coding with C recently, currently I''m working through NeHe''s lessons. I am using Borland CBuilder 4 and I''m stuck at leason 6. I get an unresolved external error at the AuxDIBloadimage function. I have tried using the Borland code provided but the version diference means I can''t open the project only the .cpp file. I''m almost certain it''s because I don''t know how to attach a library to a project in Bulider, can anyone tell me how to do this please? thanks trager
Been there. Got very frustrated. The problem is that you don''t have the glaux.lib which contains the function AuxDIBloadimage() that loads a .bmp texture for you. You can do a google search to find glaux.lib for borland C++ or go to Ronald Praver''s site to download the source that works well with versions 3 and 4. You can include the source in each project or compile it once and use it as a .lib which is much easier.
Advertisement
@nfz

Thanks for responding so quickly.

I figured after about 3 hours that I needed the glaux.lib file problem was I couldn''t seem to use it.

Turns out that I had messed up my include path for the project so that vcl.h wasn''t working and when I got the error I just deleted the line.

A very stupid thing to do as I have just found out.

vcl.h is required for USELIB("glaux.lib") to work and thus attach the .lib file to the program, yet another line I just deleted when I got an error.

Also I needed to include Alloc.h for the free() function to work, but that was fairly obvious.

So it''s all fettled-up and works a treat now, just a shame I understand roughly 2 lines of the code being { and }. nm eh.

Again thanks for responding and perhaps if I swallowed my pride and posted this response a bit earlier you may well have saved many hours of scouring the unchartered regions of the internet searching for the holy glaux.lib.

Again Many thanks

Trager
Hi

Im a new game programer in visual C, I''ve seen that is required Alloc.h library. Where I can download it? really is need for use DerectX?

Jac
Jairo Carmona

This topic is closed to new replies.

Advertisement