Other GNU/Linux tips
If you have X installed in nonstandard locations, then you might encounter the following error in compilation:
/usr/bin/ld: cannot find -lX11
To fix it:
The program will then compile.