3.2 libstdc++ not installed correctly?
Rigel Freden
rigelf@postmark.net
Mon Nov 4 19:30:00 GMT 2002
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
More information about the Gcc-help
mailing list