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/ undefined reference to ‘gluErrorString’
/usr/lib/ undefined reference to ‘gluNewQuadric’
/usr/lib/ undefined reference to ‘gluQuadricDrawStyle’
/usr/lib/ 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

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 ->
lrwxrwxrwx 1 root root 13 Apr 29 06:34 ->
lrwxrwxrwx 1 root root 22 Apr 29 06:34 ->
-rwxr-xr-x 1 root root 566445 Sep 28 2000

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
lrwxrwxrwx 1 root root 20 Jul 14 01:07 ->
lrwxrwxrwx 1 root root 13 Jul 13 01:06 ->
-rwxr-xr-x 1 root root668170 May 11 19:25

I’m not very common in linux, is there anything wrong?
Is the symbolic link to wrong?

Yes, it seems like the symlink is broken. Another problem could also be the I do not know if the linker will pick or

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.