Linux-Noob Forums

Full Version: libstdc++ linking error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Hi There,

 

I recently installed a gcc 3.4 snapshot. But now, everytime I try to run a newly compiled c++ app I get:

 

/lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libstdc++.so.6)

 

I saw that I have 2 libgcc_s.so.1, one in /lib and another in /usr/lib . Should I uninstall the previous gcc 3.3 RPM? Could I fix this using ld? If so, what would be the the correct command with ld to link /usr/lib/libstc++.so.6 to /usr/libgcc_s.so.1 ? I also get the same error runing gcj and compiled apps?

 

gcj: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libgcj.so.5)

 

So i have simmilar error with c++ and java apps but C apps run correctly...

 

Thanks

you can't just install a new source install of gcc over the old one and expect stuff that is build against gcc 3.2 to work