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

Reference


Comments

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player