From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 18 17:12:34 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 AAD6A16A403 for ; Mon, 18 Dec 2006 17:12:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id E128B43CBA for ; Mon, 18 Dec 2006 17:12:26 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kBIHBKIS036297; Mon, 18 Dec 2006 10:11:21 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 18 Dec 2006 10:12:23 -0700 (MST) Message-Id: <20061218.101223.-1540391409.imp@bsdimp.com> To: henry.lenzi@gmail.com From: "M. Warner Losh" In-Reply-To: <8b4c81f0612161943g2cef8374p91445780389e7f88@mail.gmail.com> References: <8b4c81f0612161943g2cef8374p91445780389e7f88@mail.gmail.com> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 18 Dec 2006 10:11:21 -0700 (MST) Cc: freebsd-hackers@FreeBSD.ORG 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: Mon, 18 Dec 2006 17:12:34 -0000 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, so then you change the X11R6 above to local. Warner