Subject: -lX11 problem

From: Boris Beletsky <[email-masked]>
Date: Tue, 10 Sep 1996 03:32:49 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

hello
compilong xjed i got this wierd error
- ---
ld: cannot open -lX11: No such file or directory
- ---
the reason it's wierd that i do have xlibs and include files installed

thks for u're time
borik

___
Boris Beletsky <[email-masked]>
For pgp public key, e-mail me 
with subject "get pgp-key."
___
In Linux veritas

---

From: Stoyan Kenderov <[email-masked]>
Date: Tue, 10 Sep 1996 11:54:45 +0200

Boris Beletsky wrote:

Hi Boris,

you might try adding an "-L/usr/X11R6/lib" to the CFLAGS line of the
Makeflag (or unlesss you don't use one on the gcc line".
I also had this sort of trouble a long time ago. Which compiler version
and binutils are you using?

It is a misnomer in the configuration of the GCC, ld I think.

<RESPONSIBILITY OFF>
just my 2 cents.
<RESPONSIBILITY ON>

regards,
   Stoyan

-- 
Stoyan Kenderov                        /         phone: +49 721 9652 220
NTG Netzwerk und Telematic GmbH      \/          fax:   +49 721 9652 210
Vincenz-Priessnitz-Str. 3            /\ LINK     email:
[email-masked]
D-76131 Karlsruhe, Germany          /_______    
http://www.xlink.net/~kenderov
Opinions stated herein are my own, not necessarily my employer's 
                      [finger me for my PGP public key]

---

From: "Vadik V. Vygonets" <[email-masked]>
Date: Tue, 10 Sep 1996 19:50:48 +0300 (IDT)

> and binutils are you using?

It's better to run this command from /usr:
ln -s X11R6 X11

> It is a misnomer in the configuration of the GCC, ld I think.

#ifndef RESPONSIBILITY
I hate HTMLisms!  I like C! :)
#endif

Vad.

++        _ 
Vadik V. (_`    [email-masked]  http://www.arbornet.org/~vadik/
Vygonets (_.lf  PGP public key (ID 9FC1DED9) available from surfnet.nl
Linux hackers are funny people: They count the time in patchlevels.

---

From: Boris Beletsky <[email-masked]>
Date: Wed, 11 Sep 1996 04:49:58 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 10 Sep 1996, Brian C. White wrote:

bcwhite>Don't do this!!!  I tried this fix for netscape and it causes problems
bcwhite>with 'man'.  It search X11, X11R6 and X386 directories for man pages so
bcwhite>if you create a link like this, it will find all of you X manpages twice.
bcwhite>
bcwhite>The better solution is to add the -L flag to the compile line.
hmm.. i have /usr/X , /usr/X11R5 , /usr/X11 , /usr/X386 links to /usr/X11R6
and all works fine , except compiling xjed :-\

___

---

From: "Brian C. White" <[email-masked]>
Date: Tue, 10 Sep 1996 18:16:01 -0400

> It's better to run this command from /usr:

Don't do this!!!  I tried this fix for netscape and it causes problems
with 'man'.  It search X11, X11R6 and X386 directories for man pages so
if you create a link like this, it will find all of you X manpages twice.

The better solution is to add the -L flag to the compile line.
                                             
                                          Brian
                                 ( [email-masked] )
                                             
-------------------------------------------------------------------------------
 Generated by Signify v1.00.  For this and more, visit http://www.verisim.com/

---

From: Ed Donovan <[email-masked]>
Date: 12 Sep 1996 02:14:42 -0400

> The better solution is to add the -L flag to the compile line.

Agreed.

A little earlier in the thread (article's already gone) if was mentioned
you could add the -L/... flag to CFLAGS in a Makefile.  I'd like to
amend that: if the Makefile keeps LDFLAGS separately, as some do, it
belongs there instead, as a flag specifically to the linker.  Messed
this up just today :-)

-- 
Ed Donovan				[email-masked]