PDA

View Full Version : LinkerError



bolo
04-09-2003, 02:43 AM
If I try to launch any program with OpenGL, something like this appeared:
[LinkerError]Unresolved External 'auxInitDisplayMode' referenced from '...\file.obj'
I'm absolutely sure that all needed files are included well. I suppose it happened because I have not installed c++ builder in a default directory, what's more, I have installed it in another phisical disc.
What's the problem ??? (I heard it can be set some options in Builder).
Please send me the answer to
mailto:bolob@o2.pl
Thanks

04-09-2003, 03:25 AM
you need to link with the glaux library. The easiest way to do this is
#pragma comment(lib, "glaux.lib")
however, the standerd glaux.lib does not work with Borland's compiler, and glaux is an old library anyway. You might be better off switching to GLUT or GLFW.

bolo
04-09-2003, 11:28 PM
Originally posted by ican'tremembermyusername:
you need to link with the glaux library. The easiest way to do this is
#pragma comment(lib, "glaux.lib")
however, the standerd glaux.lib does not work with Borland's compiler, and glaux is an old library anyway. You might be better off switching to GLUT or GLFW.

I have written it my programs. In my Technical University everything works well (we also use Borland's compiler). I'm sure it happened because of my not default directory, where Builder is installed.