title: MacOS Mojave. Xlib error while compiling. fatal error: 'X11/Xlib.h' file not found
body: <p>I just updated to Mojave. Before the update I was compiling a C program that used Xlib with the flags</p>
  
  <pre><code>-I/usr/X11R6/include -L/usr/X11R6/lib -lX11
  </code></pre>
  
  <p>as in </p>
  
  <pre><code>gcc -Wall -o l l.c graphics/graphics.c -I/usr/X11R6/include -L/usr/X11R6/lib -lX11
  </code></pre>
  
  <p>After the update it stoped working, and I get the error:  fatal error: 'X11/Xlib.h' file not found</p>