PDA

View Full Version : compiling errors



04-04-2002, 10:25 AM
Linking...
stipple.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
stipple.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Debug/stipple.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
where do these external com from? what's missing?

rpxmaster
04-04-2002, 11:00 AM
Try linking GLUT.LIB to your project.

Deiussum
04-04-2002, 11:06 AM
By any chance are you using Borland? I seem to recall a problem with the exit stuff in Borland. I remember what the solution was exactly, now, though. I think it had to do with using a #define. #define <something>_EXIT_HACK, or something to that effect... lemme look around a bit and see if I can find it again.

Deiussum
04-04-2002, 11:09 AM
Found it... try this.

#define GLUT_DISABLE_ATEXIT_HACK
before you include glut.h

04-04-2002, 12:18 PM
Thanks Deiussum,
the fix worked like clock work....
I am working on Visual C++ 5.0.
One small problem, at run time my program couldn't run if the glut32.dll was not in the sane directory,
do you know any fix for that?
Aviv

zeckensack
04-04-2002, 12:33 PM
Originally posted by Aviv:
Thanks Deiussum,
the fix worked like clock work....
I am working on Visual C++ 5.0.
One small problem, at run time my program couldn't run if the glut32.dll was not in the sane directory,
do you know any fix for that?
Aviv



Have you tried putting the dll in your windows\system directory?