>I have some code which works nicely on an Alpha with digital UNIX. The
>make file does the command line:
>cc -o p1 p1.c -lXaw -lXmu -lXt -lX11 -lm
>
>why don't these -lX things work? how would I get them to work?
>
>There are a few X11 directories lying around.
>like /usr/X11 /usr/X11R6 /usr/X11R6.3 (and there was a X11R6.1)
>
To compile with X flags, add -L/usr/X11/lib to
the compile line ahead of
the libraries. When you link with -Xt, you'll
have to add -lSM and -lICE
to the link, and I think that linking with -lX11
requires -lXext.
/usr/X11 and /usr/X11R6 are links to /usr/
X11R6.3, so using any of them is
equivalent.
Date: Fri, 20 Feb 1998 03:09:14 -0600
From: Joshua Rosenau <
jrosenau@midway.uchicago.edu>
Subject: Re: Linking libraries for X11; how are
they set up? mwest@nyx.net |