This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: Runtime error, not finding /usr/local/lib
- To: Gary Monheit <monheit at alexandria dot ucsb dot edu>
- Subject: Re: Runtime error, not finding /usr/local/lib
- From: brent verner <brent at rcfile dot org>
- Date: Wed, 30 Aug 2000 19:24:23 -0400
- Cc: libstdc++ at sourceware dot cygnus dot com
- References: <39AD941E.872536D0@alexandria.ucsb.edu>
On 30 Aug 2000 at 16:09 (-0700), Gary Monheit wrote:
| I am running gcc version 2.95.2 (Oct 24, 1999 release) on SunOS 5.7.
| This machine was only recently installed with pre-compiled binaries of
| gcc. I'm the first to test gcc on this machine.
|
| I noticed that I need to:
| setenv LD_LIBRARY_PATH /usr/local/lib
this is normal (with libstdc++-v3 as well), I can't comment on the
historical behavior of gcc WRT its c++ runtime library, sorry :\
| What's wrong? This used to work in previous releases of gcc 2.8.1. Do I
| need a special link parameter to get this to work?
I'm not sure how to help you, but there are only a few options as far
as I know:
1) compile the c++ library statically into the binary and the shared
object file will not be used at all. the compiler switch for this
is '-static'.
2) add ${prefix}/lib (in your case /usr/local/lib) to your system's
linker search path (i.e., /etc/ld.so.conf if you're on a linux
box, I can't offer any advice for any commercial *NIX)
3) contact the packager of the binary gcc you installed, as they
can most likely help you with option #2
hth.
brent
--
Damon Brent Verner o _ _ _
Cracker JackŪ Surprise Certified _o /\_ _ \\o (_)\__/o (_)
brent@rcfile.org _< \_ _>(_) (_)/<_ \_| \ _|/' \/
brent@linux1.org (_)>(_) (_) (_) (_) (_)' _\o_