In message: <[EMAIL PROTECTED]> "Henry Lenzi" <[EMAIL PROTECTED]> writes: : Hi * : : I'm trying to follow the following tutorial for Xlib prpogramming: : : http://users.actcom.co.il/~choo/lupg/tutorials/xlib-programming/xlib-programming.html#preface : : However, I can't seem to compile the simple-drawing.c example. I keep getting : : : > cc simple-drawing.c -o simple-drawing -L/usr/X11/lib -lX11 : simple-drawing.c:7:22: X11/Xlib.h: No such file or directory : : or : : > cc simple-drawing.c -o simple-drawing -lX11 : simple-drawing.c:7:22: X11/Xlib.h: No such file or directory : : What's the right incantation for this?
/usr/X11R6 is where X is installed, so you need -I/usr/X11R6/include for compile and -L/usr/X11R6/lib for link (in addition to the -lX11, et al). In the future it will be installed in /usr/local, so then you change the X11R6 above to local. Warner _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"