This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
- From: Noel Yap <noel dot yap at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 31 Oct 2005 13:24:30 -0800
- Subject: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
First, some info:
yapn:eng@yapn:~/proj/aoeu> g++ --verbose
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.2/configure
--prefix=/home/yapn/.mrm-vista/common/org/fsf/gcc/4.0.2
--exec-prefix=/home/yapn/.mrm-vista/kernel/processor/org/fsf/gcc/4.0.2
--enable-__cxa_atexit --enable-languages=c,c++,java
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/home/yapn/.mrm-vista/common/org/fsf/gcc/4.0.2/include
Thread model: posix
gcc version 4.0.2
When I build an executable with this g++, it's not able to load in
libstdc++; there's no run path at all. What do I need to do to get
g++ to create the correct run path automatically? Or do I need to
specify explicitly the run path each time I use g++?
Thanks,
Noel