This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++.so.2.9: cannot open shared object file
- To: Dave P <nukem_22 at yahoo dot com>
- Subject: Re: libstdc++.so.2.9: cannot open shared object file
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 16 Sep 1998 18:33:13 +-300
- Cc: egcs at cygnus dot com
- References: <19980916061916.4345.rocketmail@send101.yahoomail.com>
Dave P <nukem_22@yahoo.com> writes:
> /usr/local/src/egcs1.1b/configure --prefix=/usr/local/egcs-1.1b
> --enable-shared
> ./testing: error in loading shared libraries
> libstdc++.so.2.9: cannot open shared object file: No such file or
> directory
> Should I add my /usr/local/egcs-1.1b/lib to the /etc/ld.so.conf
Yep. Another option is to add `-R/usr/local/egcs-1.1b/lib' to the
link specs, but this will hard-code the pathname of the library into
every program, which you might prefer not to do. On Linux, ld.so.conf
is the way to go.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil