[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug related to ld linker
From: |
Ian Lance Taylor |
Subject: |
Re: Bug related to ld linker |
Date: |
13 Dec 2001 08:11:42 -0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
"Lee Chan" <address@hidden> writes:
> Hi group,
> I am encountering a bug related to ld linker which is unable to locate
> X11 library.I am working on LINUX 7.0 version
>
> 1.Compilation: gcc hardware.c -lX11 should work
> 2.Error : "/usr/bin/ld: Unable to find -lX11"
>
> This is the error that it is reporting.
> Kindly clear this bug for gods sake. I have been trying it out for two
> days.
Where is libX11.so or libX11.a installed on your system? (I don't
know what LINUX 7.0 means.) You probably need a -L option to specify
that directory. For example,
gcc hardware.c -L /usr/X11R6/lib -lX11
Ian