I'm trying to compile an example program that uses GLUT (already have tested GLUT as working), but it doesn't seem to see other required libraries that are present, even when I specify the library path with -L.
Here's the command that Makefile is calling - after I edited it to use the correct paths - and the immediate error:
gcc -o example1 -L/usr/lib example1.o -lglut -lXmu -lXext -lXi -lX11 -lm
/usr/bin/ld: cannot find -lXmu
/usr/lib/libXmu.so.6 exists (as a symlink to /usr/lib/libXmu.so.6.2.0), so I don't understand the problem. And it shouldn't even be necessary to specify -L/usr/lib, as it finds /usr/lib/libglut.so just fine without any -L flag.
Bah, I'm sorry. Only after posting did I notice that it looked funny to have 'libglut.so' but no 'libXmu.so', so I tried making a symlink. Bam, it suddenly works.