*BSD News Article 94966


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!not-for-mail
From: David Henshaw <dhenshaw@silas.cc.monash.edu.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Compiling and linking with X.
Date: Fri, 09 May 1997 14:14:17 +1000
Organization: Monash University
Lines: 22
Message-ID: <3372A499.41C67EA6@silas.cc.monash.edu.au>
NNTP-Posting-Host: ascend-2-37.cc.monash.edu.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-NNTP-Posting-User: root
X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.5-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40608

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.

-- 
David Henshaw
dhenshaw@silas.cc.monash.edu.au