[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ld problem



aphro (nate@firetrail.com) wrote:

> export LD_LIBRARY_PATH=/usr/X11R6/bin:$LD_LIBRARY_PATH
> (for bash^^)
> setenv LD_LIBRARY_PATH=/usr/X11R6/bin:LD_LIBRARY_PATH
> (for everything else? ^^)

That's not correct, for several reasons.  First, it should
be /usr/X11R6/lib, not .../bin.  Second, you can't assume that
LD_LIBRARY_PATH had previous contents.  Third, the "setenv" syntax
(which is used for csh and tcsh only) is incorect -- there should be a
space after LD_LIBARY_PATH, not an '='.

> and make again.

The linker does not look in LD_LIBRARY_PATH for libraries which it uses
during linking.  More likely, the problem was one of the 2+ typos on
the linker line in the original post....

-- 
Greg Wooledge                    | "Truth belongs to everybody."
wooledge@kellnet.com             |   Red Hot Chili Peppers,
http://www.kellnet.com/wooledge/ |

Attachment: pgpcHQwV7xteF.pgp
Description: PGP signature


Reply to: