Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 23:28:57 +0100
From:      Jona Joachim <walkingshadow@grummel.net>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Newbie request - compiling with Xlib.h
Message-ID:  <20061218232857.4809e09d@localhost>
In-Reply-To: <20061218.101223.-1540391409.imp@bsdimp.com>
References:  <8b4c81f0612161943g2cef8374p91445780389e7f88@mail.gmail.com> <20061218.101223.-1540391409.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 Dec 2006 10:12:23 -0700 (MST)
"M. Warner Losh" <imp@bsdimp.com> wrote:

> In message:
> <8b4c81f0612161943g2cef8374p91445780389e7f88@mail.gmail.com> "Henry
> Lenzi" <henry.lenzi@gmail.com> 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

Looking forward to that day :)

Jona



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061218232857.4809e09d>