bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
i built an app with theide on Ubuntu 14 and copy it to Ubuntu 12.
Then it complains
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
How to compile a bin to be used on other versions of Linux?
i built an app with theide on Ubuntu 14 and copy it to Ubuntu 12.
Then it complains
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
How to compile a bin to be used on other versions of Linux?
bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
This time, I have my app built with a recipe on Launchpad for Precise.
On my Precise 12.04.4, I install this app but it still has this error.
It works on the other Precise of mine, 12.04.5.
But on both machines, "strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 |grep GLIBC" produces no GLIBCXX_3.4.20.
Both gcc 4.6.3.
bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
the generated bin becomes larger, 1100k from 900k.
but it still complains "/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found"
bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
seems my libc is not installed complete. not all packages are of the same version. Some is newer, which makes it want to find 3.4.20.
So, I will try to turn those to the lower version again.
Anyway, the static link idea does not work, maybe because I am still using a dynamic library depending on libc.