From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 19 00:31:41 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B02916A40F for ; Tue, 19 Dec 2006 00:31:41 +0000 (UTC) (envelope-from walkingshadow@grummel.net) Received: from mail1.bytemine.net (mat.bytemine.net [193.41.144.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EE7343C9F for ; Tue, 19 Dec 2006 00:30:32 +0000 (GMT) (envelope-from walkingshadow@grummel.net) Received: from 4be54-4-82-234-154-189.fbx.proxad.net ([82.234.154.189]:41593 helo=mailsvr.my.domain) by mail1.bytemine.net with esmtpa (Exim 4.62) (envelope-from ) id 1GwSTH-0007xv-6Z for freebsd-hackers@freebsd.org; Tue, 19 Dec 2006 01:04:42 +0100 Received: from localhost (localhost [127.0.0.1]) by mailsvr.my.domain (Postfix) with ESMTP id A6754456E5 for ; Tue, 19 Dec 2006 01:04:32 +0100 (CET) Received: from mailsvr.my.domain ([127.0.0.1]) by localhost (mailsvr.my.domain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27577-01-3 for ; Tue, 19 Dec 2006 01:03:57 +0100 (CET) Received: from localhost (unknown [192.168.0.11]) by mailsvr.my.domain (Postfix) with ESMTP id 00CEC4570D for ; Mon, 18 Dec 2006 23:29:06 +0100 (CET) Date: Mon, 18 Dec 2006 23:28:57 +0100 From: Jona Joachim To: freebsd-hackers@freebsd.org 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> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.6; i386-portbld-freebsd6.2) X-Face: &>dujC`JZV!}?Y^1"%N{x!f+rW}; PX\_Cg[!|MA~tn3ebIKM|~p=,,U~YJt,Exd`Spk.1Ln zg, Q]0=:!/LTs-eg.Fz, @giLyD'D=s, L\-AJyZ8tcV`kPifedMA@rhoEikoo~K%@iDLNq2?aHZjIt) GqBY7o#9+8j/uuXDVG3`XFEH_4$T%._*%;|vIaP Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at my.domain X-Mailman-Approved-At: Tue, 19 Dec 2006 02:58:47 +0000 Subject: Re: Newbie request - compiling with Xlib.h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 00:31:41 -0000 On Mon, 18 Dec 2006 10:12:23 -0700 (MST) "M. Warner Losh" wrote: > In message: > <8b4c81f0612161943g2cef8374p91445780389e7f88@mail.gmail.com> "Henry > Lenzi" 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