*BSD News Article 95117


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.maxwell.syr.edu!newsfeed.internetmci.com!uuneo.neosoft.com!dolphin.neosoft.com!nobody
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Compiling and linking with X.
Date: Fri, 9 May 1997 16:43:23 -0500
Organization: NeoSoft, Inc.  
Lines: 27
Message-ID: <sp50l5.dj3.ln@dolphin.neosoft.com>
References: <3372A499.41C67EA6@silas.cc.monash.edu.au>
Reply-To: conrads@neosoft.com (Conrad Sabatier)
NNTP-Posting-Host: 206.27.167.69
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40657

In article <3372A499.41C67EA6@silas.cc.monash.edu.au>,
	David Henshaw <dhenshaw@silas.cc.monash.edu.au> writes:
> Hi all,
> 
> I'm trying to compile a program that uses some X libs.
> The includes are specified as required.
> i.e. #include <X11/Xlib.h>
> 
> I keep getting the following errors when I try compiling with
> cc -o xidle xidle.c -lX11
> 
> xidle.c:26: X11/Xlib.h: No such file or directory
> xidle.c:27: X11/Xatom.h: No such file or directory
> xidle.c:28: X11/Xresource.h: No such file or directory
> xidle.c:29: X11/Xutil.h: No such file or directory
> xidle.c:30: X11/cursorfont.h: No such file or directory
> 
> Any ideas as to what may be wrong ?
> The libraries have been installed in /usr/X11R6/include/X11 as per the
> sysinstall procedure.

Try cc -o xidle -L/usr/X11R6/lib -lX11 xidle.c

-- 
Conrad Sabatier
http://www.neosoft.com/~conrads