Archived

This topic is now archived and is closed to further replies.

Asker

Texture loading error...

Recommended Posts

Asker    151
I''ve downloaded NeHe''s OpenGL Lesson 6 but when I compile it I get Unresolved external ''auxDIBImageLoadA'' refererenced. What''s wrong.

Share this post


Link to post
Share on other sites
Kwizatz    1392
make sure you link with GLAux.lib

here is what I use under mingw32:

gcc -mwindows -Wall -O3 lesson6.cpp GLAux.lib -Ic:/Gcc/msvcrt/mingw32/include -o Less6.exe -lopengl32 -lglu32 -lgdi32 -lstdc++ -lwinmm

(you have to copy GLAux.lib from the platform SDK to the directory you are compiling in because the mingw library is a shared one, and you need glaux.dll for the program to run, I couldnt find glaux.dll anywhere in my PC, and I have a winme/win2k dual boot, this might be some mesa dll)



Edited by - kwizatz on January 1, 2002 2:35:45 PM

Share this post


Link to post
Share on other sites
Asker    151
yes i linked glaux.lib, if I don't the compiler say that glGenTexture and glBindTexture is undefined.

And by the way, I use Borland C++ 5.02

Does any one know what might be wrong..

Edited by - Asker on January 1, 2002 4:22:21 PM

Share this post


Link to post
Share on other sites
Killgore    122
Hi

Asger; I get the "unresolved external" when compiling the lesson 6 example just as you told you did, but how did you solve the linking problem?

I have the GLaux.lib file in the linker path but it does not solve the problem. I use BC 5.02 like you do.

Best Regards
Jacob

Share this post


Link to post
Share on other sites