PDA

View Full Version : whatelse do I need



06-16-2005, 12:03 PM
hi, there,

when I try to compile a simple code from the red book, I get a error message:

undefined reference to `OpenAWindowPlease'
undefined reference to
KeepTheWindowOnTheScreenForAWhile();

I've included
#include <GL/glx.h>
#include <GL/gl.h>
#include <stdio.h>
and linked with -lGL -lGLU

I wonder whatelse headfiles/libraries do I need? I am using gcc under linux,

Thanks!!

Aeluned
06-16-2005, 12:27 PM
wow....
...wow.

you're trying to compile pseudo-code.

...wow.

avocados
06-16-2005, 02:52 PM
There's an appendix in the red book on the GLUT library. You will need to download GLUT(google for it if the redbook doesn't have a link). Use GLUT to manage windows calls like creating a window and detecting keyboard/mouse input.