Matlab uses its own glibc libraries, and this is often a big mess.
To solve this problem, you must first make sure that Matlab is using a supported version of gcc . Do you get a warning about this when compiling?
If you are a sudoer, you can also make matlab use standard glibc by doing something like this (I did this and it works fine):
cd /usr/local/MATLAB/R2011a/sys/os/glnxa64 sudo mkdir old sudo mv libstdc++.so.6* old sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
Many complain about it on the Internet, there are different solutions if these two do not work.
source share