I get som errors when I try to compile my simple example.
compile command: g++ source.cpp -lGL -lGLU -lglut
I get some Errors:
/usr/lib/libglut.so: undefined reference to ‘gluErrorString’
/usr/lib/libglut.so: undefined reference to ‘gluNewQuadric’
/usr/lib/libglut.so: undefined reference to ‘gluQuadricDrawStyle’
/usr/lib/libglut.so: undefinded reference to…
Check that the GLU library is installed and that the linker can find it. Perhaps do you need to use -L to tell the linker where it is. I have a symlink in /usr/lib called libGLU.so
I checked the library, I have a symbolic link too.
The Linker can find the library, he doesn’t give an error message for this.
Is my glu library wrong??
I have this:
lrwxrwxrwx 1 root root 11 Apr 29 06:34 libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root 13 Apr 29 06:34 libGLU.so.1 -> libGLU.so.1.3
lrwxrwxrwx 1 root root 22 Apr 29 06:34 libGLU.so.1.3 -> libGLU.so.1.3.20000925
-rwxr-xr-x 1 root root 566445 Sep 28 2000 libGLU.so.1.3.20000925
It is the SGI GLU 1.3 rpm from Mesa. Obvious do I also have the wrong time.
I have this:
-rw-r–r-- 1 root root 88464 May 15 23:34 libGLUU.a
-rwxr-xr-x 1 root root 685 May 23:34 libGLU.la
lrwxrwxrwx 1 root root 20 Jul 14 01:07 libGLU.so -> libGLU.so.1.1.030401
lrwxrwxrwx 1 root root 13 Jul 13 01:06 libGLU.so.1 -> libGLU.so.1.3
-rwxr-xr-x 1 root root668170 May 11 19:25 libGLU.so.1.3
I’m not very common in linux, is there anything wrong?
Is the symbolic link to libGLU.so.1.1.0.0401 wrong?
Yes, it seems like the symlink is broken. Another problem could also be the libGLU.la. I do not know if the linker will pick libGLU.so or libGLU.la?
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.