OpenGL wont work in linux w/ or w/o an editor

i am pretty new at linux. but im pretty good at c++. i would really like to be able to program some OpenGL games on linux. but i cannt get OpenGL to work. no matter what i do there are errors and warnings because i dont have something. ive installed everything but still it dose not work.

it gives me errors about glu.h and that i dont have any of the X11 files.

Can you plz help me get OpenGL to work on linux? or point me into a good direction?

http://www.tuxedo.org/~esr/faqs/smart-questions.html

Originally posted by rts:
http://www.tuxedo.org/~esr/faqs/smart-questions.html

yeah, best direction to be pointed to

All you have to do is when you compile it using g++ type:
g++ program.c -o program -lGL -lGLU -lm
-lglut
this should make your program work, you might not need -lglut

thx man i feel like such an idiot.

ummm i did the linking thing and it still dosnt work. . do u hav any idea whats wrong?

Originally posted by nukem:
ummm i did the linking thing and it still dosnt work. . do u hav any idea whats wrong?

I really, really, really urge you to read http://www.tuxedo.org/~esr/faqs/smart-questions.html
before posting again.

Really.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.