(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) Languages and Compilers :
Problems with X libraries; e.g. "cc -o p1 p1.c -lXaw -lXmu -lXt -lX11 -lm"

>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
[Append to This Answer]
Previous: (Answer) I get an error about lcrypt while compiling apache...
Next: (Answer) Using egcs-1.1 with linuxppc R4 and mklinux DR3
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=364
[Search] [Appearance]
This is a Faq-O-Matic 2.717d.
Hosted by anduin.org and SourceForge Logo