This is the mail archive of the gcc-help@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]

3.2 libstdc++ not installed correctly?


RedHat 7.3 on Athlon xp 1900 768 ddr mem, yadayada.  I followed the
recommended install for gcc 3.2 by doing the
objdir/../gcc-3.2/configure && make bootstrap && make install thing. 
Got rid of RH dirty gcc2.96 by manually deleting /usr/bin/gcc, etc.
now I compile this:

#include<iostream>

using std::cout;
using std::endl;

int main()
{
  cout<<sizeof(long)<<endl;
}

and ldd it and get this:
        libstdc++.so.5 => not found
        libm.so.6 => /lib/i686/libm.so.6 (0x40029000)
        libgcc_s.so.1 => not found
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

libstdc++.so.5 is in usr/local/lib, but gcc does not search there for
it.  Never heard of libgcc_s, so I guess I'm a newbie or something.
Sorry if this has been over a million times, but what up and how do I
fix it?


Rigel Freden
rigelf@postmark.net


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