Add "-L/usr/X11R6/lib" to the gcc command line. This will add /usr/X11R6/lib to the library path, because this is where libX11.so/.a is located.
-- ___ ___ / _ | / _ \ Ari Pollak - [EMAIL PROTECTED] - www.aripollak.com / __ |/ ___/ /_/ |_/_/ A man needs a good memory after he has lied.