1 <qandaentry id="missing-x-includes">
2 <question><para>X11/Xlib.h: No such file or directory</para></question>
3 <answer><para>Typical symptoms look like this:
5 <screen>$ echo -en 'x11:\n\tgcc x11.c\n' > Makefile
6 $ echo -en '#include <X11/Xlib.h>\nmain() { }\n' > x11.c
9 <emphasis role="strong">x11.c:1: X11/Xlib.h: No such file or directory
10 make: *** [x11] Error 1</emphasis>
14 <para>Creating a couple symlinks will fix it. Here are the commands:
19 ln -s ../X11/include/X11 X11