This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help with installation! plz!
- From: Jim Wilson <wilson at specifixinc dot com>
- To: TLN <31337 at mail dot kz>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 08 Jul 2004 13:11:11 -0700
- Subject: Re: Help with installation! plz!
- References: <20040708001648.36003b5b.31337@mail.kz>
TLN wrote:
./c: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/local/lib/libstdc++.so.6)
This indicates a problem with shared library symbol versioning.
The easiest way to solve it is to use the -static option, which avoids
use of shared libraries, and thus avoids this problem.
Otherwise, you need to figure out why the right shared libraries aren't
being used. Installing and using shared libraries can be tricky. You
may need to define LD_RUN_PATH to point at the gcc shared libraries you
installed. Or you may need to add them to /etc/ld.so.conf. See the
ldconfig man page. You can try using the -v option to see what gcc is
doing. If you have a compiler installed into /usr/local, then it
probably should be using /usr/local/lib/libgcc_s.so instead of
/lib/libgcc_s.so. So you need to figure out why the wrong libgcc_s.so
is being used.
[victor@TLN Desktop]$ gcc -o const1 const1.cc
Use g++ not gcc to compile C++ code. This compile failed because you
didn't link in the C++ standard library. g++ will do that automatically
for you.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com