compiling open gl programs


i want to know that if i can write opengl programs on linux operating systems and how to compile them

Yes, you can.

You compile them the same as any other program.

You link them with the GL libs, and sometimes the X11 libs are needed too (-lGL -lGLU -lglut -lX11)