Subject: Re: compiling simple X program
To: None <muc-lists-netbsd-help@moderators.muc.de>
From: Michael Core <520079546242-0001@t-online.de>
List: netbsd-help
Date: 07/18/2002 23:36:54
chris.wareham@iosystems.co.uk (Chris Wareham) wrote:

> Nathan Langford wrote:
> > --- Martin Weber <Ephaeton@gmx.net> wrote:
> >>>I'm trying to experiment with writing C for X.  I found a simple 
> >>>program that just creates a window and then closes it, but the 
> >>>include <X11/Xlib.h> line generates the error:
> >>>
> >>>"X11/Xlib.h: No such file or directory"
> >>
> >>3) try with the following: cc -o <binaryname> <sourcefile>
> >-I/usr/X11R6/include -L/usr/X11R6/lib -lX11>
> > 
> > That worked for compiling without errors, but running it
> > spits out: "missing libX11.so.6".  I thought the -L... would
> > fix that.
> Try setting the following environment variable, and see if
> it fixes your problem:
> 
> export LD_LIBRARY_PATH=/usr/X11R6/lib:$LD_LIBRARY_PATH

Let me quote David S.:
'That recommendation falls under the category of "Corrupting the Minds
and Morals of Our Youth".'

SCNR ;-)
-- 
Michael