problem with opengl in latest gcc opensuse 11

hello everyone.

i recently installed opensuse 11 dvd version with xfce, installed latest gcc and freeglut.

when i try to compile a simple application (it uses glut.h and gl.h, just creates a window) with gcc it gives undefined references for every gl/glut function.

i have searched around but i didnt find anything about what package should i install to get this working.

thank you

You need to install freeglut-devel package.

then link your code with -lglut…

What exactly are you doing eh ?

thanks, linking with -lglut solved my problem