compiling errors

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?

Try linking GLUT.LIB to your project.

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.

Found it… try this.

#define GLUT_DISABLE_ATEXIT_HACK
before you include glut.h

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

Originally posted by Aviv:
[b]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

[/b]

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