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?
- Someone try to compile this under there version of SUSE.
- 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 to
glutInit’
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