Suse doesn't Compile for OpenGL!

I would love to see anyone compile the simple openGL program below
without having problems under Suse. I’ve had no problems compiling under
Redhat and Mandrake. Can it be done with suse?

  1. Someone try to compile this under there version of SUSE.
  2. If successful, what had to be changed? Using gcc, what did you
    type to compile it?

//begin------: opengltest.c
#include
#include
#include

main(int argc, char argv[])
{
glutInit(&argc, argv);
return 0; /
ANSI C requires main to return int. */
}
//end opengltest.c

I get:
gcc -lm -lGL opengltest.c
/tmp/ccAdiovA.o(.text+0x18): In function main': : undefined reference toglutInit’
collect2: ld returned 1 exit status

On my system:
…/ldconfig -p | grep glut
libglut.so.3 (libc6,x86-64) => /usr/lib64/libglut.so.3
libglut.so.3 (libc6) => /usr/lib/libglut.so.3

On my System:-------------------------------------------------
> 3Ddiag
3Ddiag version 0.722
Verifying 3D configuration:
Using 3dinfo


================================================================
No 3D capable graphic chipset found!

Checking GL/GLU/glut runtime configuration:
GL/GLU … done (package xorg-x11-Mesa)
glut … done (package freeglut)

How do i compile the above program (opengltest.c)?

Thanks,
Jason

I have posted a response in beginner’s forum
here beginner's opengl forum

There is rules on these forums:
_don’t post 3times the same topic !
_here this is the advanced forum, your question is not advanced
_On the link below this is ‘beginner forum’, but your question sound like to be in Linux forum

not in the 3… :eek:

Please, use the linux specific forum for linux questions: this post cannot be an advanced opengl topic !!

Thank you to understand.