[Linker error] undefined reference to ...

Everytime I try to compile a (my first) openGL program, I get a number of errors like this:

[Linker error] undefined reference to `glClear@4’

only the last name is everytime different.
I use Dev-C++ on Windows XP…

are you linking with opengl libraries?? under devcpp go to porject options and add this to linker options/additional libraries: -lopengl32 -lglu32 (i think )

(and of course you should also include proper header files )

[This message has been edited by miko (edited 12-29-2002).]