>I can't seem to get ld to find my X11 library when I compile. I have to
>manally put in the -L option to have the library found. How do I set it
>up so ld looks for it on its own. The directory is in the ld.so.conf
>file and it shows up when I do a 'ldconfig -v', but it can't be found.
>Thanks.
>Clay Fandre
>P.S. Does anyone know of any WWW sites with programming FAQ's or help
>files?
If ld is called by gcc, as it normally is, you can use the LIBRARY_PATH
environment variable.
E.g. put this in your .profile
export LIBRARY_PATH="/usr/X11R6/lib:/usr/local/lib"
This alloys gcc to find the X libraries in /usr/X11R6/lib
Regards, Roland
---------------------------------------------------------------
Eindhoven, The Netherlands | play - C hacker (Linux & X)
---------------------------------------------------------------
This message is composed out of 100% recycled bytes
---------------------------------------------------------------