On 05/26/2010 05:50 PM, lfrfly@xxxxxxxxxxx wrote: > I recently built gcc 4.5 from source. That took a bit of doing, but > eventually I got to working. Since I don't have admin on this machine, I > set the --prefix to /u1/public/gcc and make installed it there. > > I am now able to compile with g++ 4.5. To help, I did > alias g++0x /u1/public/gcc/bin/g++ -std=c++0x > > However, linking doesn't yet work. I got: > /usr/bin/ld: cannot find -lgcc_s > And when I changed the alias to include > -L/u1/public/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/ > -L/u1/public/gcc/lib/gcc/x86_64-unknown-linux-gnu/lib/ > then I got > /usr/bin/ld: skipping incompatible > /u1/public/gcc/lib/gcc/x86_64-unknown-linux-gnu/lib//libgcc_s.so when > searching for -lgcc_s > /usr/bin/ld: cannot find -lgcc_s > > Any ideas? You haven't given us a huge amount of information: usually we'd want the configure line and the command you use to do the test. However, you can use "strace -etrace-file" to see where g++ is looking for libgcc_s.so. That'll give you a clue. Andrew.