Subject: Re: X compiling query
To: Bevis Peters <bevis@APG.PH.UCL.AC.UK>
From: Neil A Carson <neil@IVISION.CO.UK>
List: port-arm32
Date: 07/10/1996 15:34:56
On Wed, 10 Jul 1996, Bevis Peters wrote:

> Now compiling X code on my work alpha / DEC i can use the line "cc blah -lX11"
> and #include <X11/Xlib.h> sort of thing in the code, and all is fine. This
> does not work on RBSD, though. "-lX11" gives an error. I have to run this
> code on a variety of platforms, and so I cannot explicitly put the pathname
> in the #include lines, and putting a "-I/usr/X11R6/include (or whatever)"
> does not seem to work. In short, how do I set this "X11" type variable?

-lX11 includes a library at the linking stage. You may need to specify
-Llibrary_path to tell the linker where the libraries are eg.
	-L/usr/X11R6/lib -lX11

-I sets the path that the compiler looks for include files in.

    Yours Aye,

    Neil

* Neil A Carson
* Internet Vision Ltd.
* E-Mail: neil@ivision.co.uk, Phone: (0171) 589 4500