MATLAB: Cant run mex under ubuntu

linuxmex compiler

following error shows…..in UBUNTU 11.04 ….32-bit
mex resize.cc
Warning: You are using gcc version "4.5.2-8ubuntu4)". The version
currently supported with MEX is "4.3.4".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release/
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl_c.so.2)
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl_c.so.2)
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl.so.7)
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl.so.7)
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/cc1plus: /usr/local/MATLAB/R2011a/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libgmpxx.so.4)
mex: compile of ' "resize.cc"' failed.
??? Error using ==> mex at 208
Unable to complete successfully.

Best Answer

What is your question?
Doesn't this explain the source of the problems already:
You are using gcc version "4.5.2-8ubuntu4)". The version currently supported with MEX is "4.3.4"
Related Question