[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] Help: Compiling ...
On Mon, Nov 15, 1999 at 08:38:25PM +0530, Mahamood Hussain wrote:
> Hi,
>
> I am a novice programmer in Linux and 'am having trouble linking.
> I use RedHat 6.0.
>
> When trying to compile with :
>
> cc -o xhello xhello.c -lX11
>
> I get this output:
>
> /usr/bin/ld: cannot open -lX11: No such file or directory
> collect2: ld returned 1 exit status
Try:
cc -o xhello xhello.c -L /usr/X11R6/lib -lX11
-Arun
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.