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.

 채택된 답변

Jan
Jan 2013년 7월 20일

0 개 추천

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

abukaf
abukaf 2013년 7월 20일
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"
abukaf
abukaf 2013년 7월 20일
i m reaaly troubling.....
help me!!!!!!!!
Jan
Jan 2013년 7월 20일
편집: Jan 2013년 7월 20일
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.:
abukaf
abukaf 2013년 7월 23일
thanks sir......... now i m able to compile

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

질문:

2013년 7월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by