Subject: Re: compiling simple X program
To: Nathan Langford <njl@EastCoastEmail.com>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-help
Date: 07/17/2002 19:21:13
On Wed, 17 Jul 2002, Nathan Langford wrote:

> Hi,
> 
> I'm trying to experiment with writing C for X.  I found a simple program that just creates a window and then closes it, but the include <X11/Xlib.h> line generates the error:
> 
> "X11/Xlib.h: No such file or directory"
> 
> Doesn't make sense to me since it exists in /usr/X11R6/include.  What am I missing?  I know it's something stupid - don't hate me.
> 

you need to add -I/usr/X11R6/include to the compile line.

-Dan