title: What do I need to do to link with xlib?
body: <p>I am using GCC, what switches do I need to add to link with Xlib? After searching, all I could find was <code>-lX11</code>, but that gave me <code>ld: library not found for -lX11</code></p>
  
  <p>I am using a mac (10.6), but I would not like anything that is Mac specific.</p>