Newbie request - compiling with Xlib.h
Divacky Roman
xdivac02 at stud.fit.vutbr.cz
Mon Dec 18 02:59:04 PST 2006
On Sun, Dec 17, 2006 at 01:43:57AM -0200, Henry Lenzi wrote:
> 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?
I am no expert with X but you are supposed to use xmkmf to create an imakefile
and then use it... I never managed to do it though :(
More information about the freebsd-hackers
mailing list