On Mon, Apr 23, 2001 at 12:34:48PM -0400, Bob Bell wrote:
> On Sat, Apr 21, 2001 at 10:48:14AM +0800, Horace G. Friend III <[EMAIL PROTECTED]> wrote:
> > I also d/led the RunningX.c code from mutt.org and compiled it as
> > suggested in the code but I get a compile error. I run
> >
> > gcc -o RunningX RunningX.c -lX11
> >
> > but I get the error
> >
> > /usr/bin/ld: cannot find -lX11
> > collect2: ld returned 1 exit status
> >
> > I'm on a RH7 box running kernel 2.2.16 and gcc-2.96-69. Can someone pls.
> > figure out why I can't compile and what needs to be done?
>
> Try using the following:
> gcc -o RunningX RunningX.c -L/usr/X11R6/lib -lX11
>
Thanks Bob. This time it worked.
One follow-up question if you don't mind. The RunningX binary is approx.
14K while the shell script is less than 1K. Is there any advantange of
using the binary over the script considering it's huge size?
TIA.
--
Horace G. Friend III
[EMAIL PROTECTED]
GnuPG DSA/ElGamal Key Fingerprint
9295 80C4 C723 621B 9C2D B53E D432 7936 4CA9 8AD6