View Full Version : Unable to find Xlib files

4th May 2009, 04:53 PM
I have just migrated from Red Hat 9 to Fedora 10

I want to run my XWindows programs but the error I am getting is unable to find the library files the path i am giving to compile my files is as follows

gcc -I /usr/X11R6/include -L /usr/X11R6/lib -l X11 -o xwinq2 xwinq2.c

xwinq2 is name of my file

Help pls?

4th May 2009, 06:56 PM
Remove all the -I and -L options from your compile command. If the necessary development packages are installed gcc finds the files using standard paths.

4th May 2009, 07:42 PM
they might need to be rewrote for fedora 10
rh9 to fed 10 is like going from "Win 95" to "vista "

5th May 2009, 05:52 AM
It didn't helped

They are basic c programs and i think they can be compiled by normal gcc compiler

5th May 2009, 06:06 AM
you might see if "libX11-devel" is installed

rpm -qa | grep X11

have you installed the Dev Tools? and lib's?

su -
yum groupinstall "Development Libraries" "Development Tools" "X Software Development"

5th May 2009, 09:02 AM
Thanks for the help

Its working now I had installed the X windows package but didn't installed its development environment package

I have installed the other package now

In Red Hat its installed automatically with X Windows Package

Thanks for suggestions friends