using Debian 3.0r1
using kernel 2.4.23
using gcc 3.3.2
I wish to make a helloworld using c++'s cout.
compile ok using g++
but error when execute:
Code:
./a.out: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
odd, the libstdc++.so.5 exist in /usr/local/lib/
when I copy this file into /usr/lib/ for test
it return another error:
Code:
./a.out: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libstdc++.so.5)
I guess the error is caused by linux do not realize there exist a shared library in /usr/local/lib/
something more strange, redhat do not make the same error!! (so I think it is a debian problem...)
how can I fix it?
thx.