Compiling OpenGL apps for Nvidia
Hi all!
I'm using an nvidia card and I have a problem with compiling OpenGL apps
with it:
cc -o origami origami.o -L../libglut -L/usr/X11R6/lib -L/usr/lib
-L/home/romain/OpenGL/opengl_for_x/glut/libglut -lglut -lGL -lGLU -lXmu
-lXext -lX11 -lm
origami.o: In function `display':
origami.o(.text+0x655): undefined reference to `glPolygonOffsetEXT'
origami.o(.text+0x6ac): undefined reference to `glPolygonOffsetEXT'
collect2: ld returned 1 exit status
Hint:
the prototype for glPolygonOffsetExt is in /usr/include/GL/gl.h but the
file header starts with
/*
* Mesa 3-D graphics library
* Version: 3.4
*/
which seems suspicious.
any ideas ? (the drivers downloaded from nvidia don't have any
opengl-related header file)
Related question:
how can I list the functions defined in a given .o (resp .a, .so ) ?
Thanks for any clue
(free jpeg screenshot from my open gl flight sim for the five first
answers :)
Romain
PS: my /usr/lib/libGL* libs look like that:
lrwxrwxrwx 1 root root 14 Jan 14 12:27 libGL.so ->
libGL.so.1.0.5
lrwxrwxrwx 1 root root 14 Jan 11 22:48 libGL.so.1 ->
libGL.so.1.0.5
-rwxr-xr-x 1 root root 184112 Jan 14 12:27 libGL.so.1.0.5
lrwxrwxrwx 1 root root 13 Jan 11 22:47 libGLU.so ->
libGLU.so.1.3
lrwxrwxrwx 1 root root 13 Nov 14 23:01 libGLU.so.1 ->
libGLU.so.1.3
-rwxr-xr-x 1 root root 487348 Nov 10 00:39 libGLU.so.1.3
lrwxrwxrwx 1 root root 18 Nov 14 18:49 libGLcore.so.1
-> libGLcore.so.1.0.5
-rwxr-xr-x 1 root root 1499464 Jan 14 12:27
libGLcore.so.1.0.5
-rwxr-xr-x 1 root root 26168 Dec 6 00:07 libGLw.a
Reply to: