From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 18 10:59:04 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 A8B5616A412 for ; Mon, 18 Dec 2006 10:59:04 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB8DE43CA0 for ; Mon, 18 Dec 2006 10:57:28 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id kBI9sEj1007153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Dec 2006 10:54:14 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id kBI9sERS007152; Mon, 18 Dec 2006 10:54:14 +0100 (CET) Date: Mon, 18 Dec 2006 10:54:14 +0100 From: Divacky Roman To: Henry Lenzi Message-ID: <20061218095414.GA7041@stud.fit.vutbr.cz> References: <8b4c81f0612161943g2cef8374p91445780389e7f88@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b4c81f0612161943g2cef8374p91445780389e7f88@mail.gmail.com> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 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 10:59:04 -0000 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 :(