MATLAB: Do I receive a link error from libstdc++.so when I try to compile the application with the MATLAB Compiler 4.0 (R14)

_unwind_resume_or_rethrow3.2.33.3.3gccldlibstdc++libstdc++.solinkMATLAB Compilerresumerethrowunwindunwind_resumeunwind_resume_or_rethrow

I am trying to compile my application using the MATLAB Compiler 4.0 (R14) and I recieve the following error:
libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3'
collect2: ld returned 1 exit status

Best Answer

This error may occur with the MATLAB Compiler 4.0 (R14) when used in combination with GCC 3.3.x, with GCC 3.2.3 that is distributed by RedHat, or with another unsupported version of GCC.
For the list of supported compilers, consult the following document:
To resolve this, see the related solution in order to compile and install a fully compatible GCC or the other related solution to try a workaround that is not officially supported.