PDA

View Full Version : faint, problem with XLib in mandrakelinux 10.1



jinhao
06-22-2005, 04:43 AM
#include<X11/Xlib.h> //compiler says that can't find the file.
i searched the file in /usr/X11R6/include, i got nothing. how can i install the X?

thanks for any help

jinhao

MathFan
06-22-2005, 06:17 AM
X is apparantly installed if you are running in graphic mode. As far as I know this and other X headers should be present if X is installed properly.

Are you sure that Xlib.h is not in /usr/X11R6/include/X11/?
There should also be: either a link in /usr/include that is called X11 and points to /usr/X11R6/include/X11/ OR you should use -I/usr/X11R6/include/ as a command line option for your compiler.

MathFan
06-22-2005, 06:25 AM
And one more thing. If you search for the file on the whole partition without finding it, you probably forgot to install XF86-devel (or something). Try to search for it either online or in your rpmdrake.