RE: [Xpert]Help: /usr/bin/ld: cannot find -lX11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(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:preetham@student.utdallas.edu]
Sent: Thursday, July 04, 2002 22:36
To: newbie@xfree86.org
Cc: xpert@xfree86.org
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.

[Index of Archives]     [XFree86]     [Xfree86 Xpert]     [X.org]     [IETF Annouce]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Picture Sharing]     [Linux Security]     [Linux RAID]

  Powered by Linux