Mixed C++/Free Pascal program, Linux. I used to build it on a 32-bit Debian box and run it on a 64-bit CentOS 5.3 server box, and it worked fine. Now I've upgraded my Debian box to 6.0.3 (Squeeze). After the next rebuild, the program does not run on the server host anymore, instead prints the following:
myapp: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by myapp)
myapp: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by myapp)
Now, when I run ls -l /usr/lib/libstdc++*
, I notice that on the dev box libstdc++.so.6
is a symlink to libstdc++.so.6.0.13
, while on the host it's a symlink to libstdc++.so.6.0.8
. That could be the culprit.
Can you suggest a troubleshooting strategy, please? Should I somehow put an earlier version of libstdc++ on the dev box and try to link against it, or try to upgrade the prod box?