cant run mex under ubuntu

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.

 Accepted Answer

Jan
Jan on 20 Jul 2013
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"

4 Comments

this is the warning u mentioned...... i google-ing i found that this can be ignore
my question is how i remove this error when i m compiling any c file in matlab thru mex compiler under linux...........
i hope now u understand my problem.........basically i m new with "mex tool"
i m reaaly troubling.....
help me!!!!!!!!
Jan
Jan on 20 Jul 2013
Edited: Jan on 20 Jul 2013
What is wrong with installing the GCC version Matlab supports? Did you even try it? When you decide not to use the suggested compiler, follow the instructions you find in the net, e.g.:
thanks sir......... now i m able to compile

Sign in to comment.

More Answers (0)

Categories

Asked:

on 20 Jul 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!