This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with installation! plz!


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]