I have a program that I compile using CMake on machine A but I want to run it on an older machine B. When I do so I get the following:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./program)
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ./program)
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./program)
I have seen this question and I think the best way to resolve my problem would be to copy the newer version to machine B. So I copied /usr/lib/libstdc++.so.6
(and libstdc++.so.6.0.14
) from A to ~/lib
on B and did
export LD_LIBRARY_PATH=~/lib:$LD_LIBRARY_PATH
afterwards. When starting my program I now get
Floating point exception
What can I do to make it work?