Subject: Re: Where do I get libX11?
To: None <port-arm32@NetBSD.ORG>
From: Adrian P. Ireland <aireland@indigo.ie>
List: port-arm32
Date: 09/16/1997 21:21:00
Hi there,
I found libX11
the headers are in
/usr/X11R6.1/include/X11
and the library archive is in
/usr/X11R6.1/lib/libX11.a
Thanks to Thomas Boroske for that.
My program (Angband actually) uses these header files in main-x11.c
..[snip from main-x11.c]...
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/keysymdef.h>
..[end of snip from main-x11.c]...
The relevant bits from my makefile are
..[snip from Makefile]...
# Changed by Adrian to stop the standard compilation
CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU" \
-I/usr/X11R6.1/include/
LIBS = -L/usr/X11R6.1/lib/libX11.a -lcurses -ltermcap
#original LIBS
#LIBS = -lX11 -lcurses -ltermcap
..[end of snip from Makefile]...
Everything compiles fine but at the link step I get a string of errors like
main-x11.o: In function `Infoclr_Pixell':
/usr/aireland/angband/angband-282/src/main-x11.c:1012: undefined reference to
`XParseColor'
/usr/aireland/angband/angband-282/src/main-x11.c:1022: undefined reference to
`XAllocColor'
Now these functions are defined in the appropriate header files
myname# grep XParseColor /usr/X11R6.1/include/X11/*
/usr/X11R6.1/include/X11/Xlib.h:extern Status XParseColor(
but I am not sure if they are in
/usr/X11R6.1/lib/libX11.a
Can I check the contents of libX11.a somehow?
Do I need to include some of the other *.a files?
Thanks for the help
Adrian
--
Adrian Ireland mailto:aireland@mail.indigo.ie Put it off until tomorrow.
Jury -- Twelve people who determine which client has the better lawyer.
--
Adrian Ireland mailto:aireland@mail.indigo.ie Put it off until tomorrow.
An unbreakable toy is useful for breaking other toys.