On Sun, 2003-08-03 at 16:09, Chris Wilkinson wrote:
> Here is what happens when I try to 'make' the demos...
> 
> [EMAIL PROTECTED] WaveGL]$ make
> make[1]: Entering directory `/home/chrisw/WaveGL'
> cc `sdl-config --cflags` `sdl-config --libs` -lm -lGL -lGLU -o WaveGL 
> WaveGL.o
> /usr/bin/ld: cannot find -lGLU
The simlink solution you posted earlier would work, as would adding a
flag to the linker:
cc `sdl-config --cflags` `sdl-config --libs` -lm -L/usr/X11R6/lib -lGL
-lGLU -o WaveGL WaveGL.o

     1. Frequently the full path to the library is embedded into the ELF
        executable when linking, so the linker needs to know the
        directory, even though it is specified in "ld.so.conf".
     2. IIRC the linker only looks in "/lib" and "/usr/lib" by default,
        but I am most willing to be corrected on the matter :)
     3. The linker still needs to look at every library to resolve the
        symbols (fprintf -> libc.so.6, sqrt -> libm.so.6) even though
        the library is only "symbolically" linked.

Part of your confusion was mixing the linker (cc) up with the dynamic
loader (ld).
-- 
Michael JasonSmith                                   http://www.ldots.org/

Reply via email to