[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] Help: Compiling ...
Hi Arun,
--
On Mon, 15 Nov 1999 09:24:02 Arun Sharma wrote:
>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
Simple, solve the problem by setting the symbolic link
ln -s libX11.so.6 libX11.so
It will work .......
>>
>> 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
>
>
Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://my.lycos.com
--------------------------------------------------------------------
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.