[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
[LI] Help: Compiling ...
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
libX11.a resides in /usr/X11r6/lib but the command :
cc -print-file-name=X11
gives ...
/usr/lib/X11
Could you guyz help me out ??
Thanx for your time.
Regards,
Mahamood Hussain
--------------------------------------------------------------------
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.