MATLAB - cannot find libstdc++ when running external C/C++ program
Error message:
..../sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ...)
Solution:
Start MATLAB with following command
LD_PRELOAD = "Dirlocation"/libstdc++.so.6 "DirForMATLAB_Shell"/matlab
For example:
libstdc++.so.6 located on "/usr/lib/i386-linux-gnu/"
MATLAB is located on " /opt/matlab2011b/bin"
Start MATLAB by following command:
LD_PRELOAD=/usr/lib/i386-linux-gnu/libstdc++.so.6 /opt/matlab2011b/bin/matlab
Comments
Post a Comment