Hi all, I've discovered a very unexpected behaviour with ld and libX11 - although I have the library installed I cannot link the following programme: char XOpenDisplay (); int main () { XOpenDisplay (); ; return 0; }
[EMAIL PROTECTED]:~$ gcc -o conftest.o -lX11 -lm conftest.c /usr/bin/ld: cannot find -lX11 [EMAIL PROTECTED]:~$ aptitude search ~ilibx11 i A libx11-6 i A libx11-dev [EMAIL PROTECTED]:~$ ll /usr/X11R6/lib/libX11.* /etc/ld.so.* -rw-r--r-- 1 root root 48731 2006-09-23 15:02 /etc/ld.so.cache -rw-r--r-- 1 root root 15 2006-08-04 20:22 /etc/ld.so.conf -rw-r--r-- 1 root root 1938320 2005-09-15 23:10 /usr/X11R6/lib/libX11.a lrwxrwxrwx 1 root root 11 2006-09-15 23:11 /usr/X11R6/lib/libX11.so -> libX11.so.6 lrwxrwxrwx 1 root root 13 2006-08-05 10:19 /usr/X11R6/lib/libX11.so.6 -> libX11.so.6.2 -rw-r--r-- 1 root root 893712 2005-09-15 23:10 /usr/X11R6/lib/libX11.so.6.2 [EMAIL PROTECTED]:~$ cat /etc/ld.so.conf /usr/X11R6/lib I have tried this both on sarge amd64 and sarge x86. I cannot see why ld fails to find libX11. Is there anything I'm missing? Thanks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]