(do you have libX11.so.* and/or libX11.a installed in your system?)
 
maybe you should give your compiler some hint
on where it has to look for the lib you want to use:
 
  cc -L/usr/X11R6/lib -o client client.c -lX11
 
I furhter added a name for the output file.
Lets hope that this helps
and that i put all option in the best ordering.
 
-----Original Message-----
From: Preetham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 22:36
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [Xpert]Help: /usr/bin/ld: cannot find -lX11

Hi all:
 I have written a simple X program, when i compile it by typing:
>cc client.c -lX11
i get the error=20
>/usr/bin/ld: cannot find -lX11
I am using RedHat Linux 7.2 and am new to X Programming and this   my "Hello World" Program of X11 programming.
Appreciate the help.
Thanks,
Preetham.

Reply via email to