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.

 Respuesta aceptada

Jan
Jan el 20 de Jul. de 2013

0 votos

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 comentarios

abukaf
abukaf el 20 de Jul. de 2013
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 el 20 de Jul. de 2013
i m reaaly troubling.....
help me!!!!!!!!
Jan
Jan el 20 de Jul. de 2013
Editada: Jan el 20 de Jul. de 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.:
abukaf
abukaf el 23 de Jul. de 2013
thanks sir......... now i m able to compile

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 20 de Jul. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by