OpenGL Hello World Example

Rohit rohitvis at
Wed Jun 18 09:17:41 PDT 2003

This is something that has troubled me quite a bit. I followed the hello world 
tutorial for opengl found here.

This is the command I'm using to compile it (as suggested at the website)

gcc -o Hello_World Hello_World.c -lX11 -lMesaGL -lMesaGLU -lMesatk -lm 

However it says gltk.h not found when I have gltk.h in 

This is the same type of scenario I ran into when I tried compiling qt 
examples. I have tried appending  I/usr/X11R6/include/GL/gltk.h to the above 
gcc command.

Any advice will be greatly appreciated. 


More information about the freebsd-questions mailing list