using mex -setup error

3 visualizaciones (últimos 30 días)
zhang qi
zhang qi el 28 de En. de 2015
Comentada: Muhammed Ali Erbir el 6 de Dic. de 2018
when i use this command in matlab,error:Error using mex (line 206) .Unable to complete successfully.but i already set up the sdk,there is no effect.
  2 comentarios
Geoff Hayes
Geoff Hayes el 28 de En. de 2015
Zhang - if you have already set up the SDK then there may be a problem with an environment variable or something else that isn't obvious. Redo the setup with verbosity enabled and check the output for signs of something missing. Post the results here if unclear what to do next. The command to run is
mex -v -setup
Muhammed Ali Erbir
Muhammed Ali Erbir el 6 de Dic. de 2018
you have to install visual studio including "C++ destop app" option
then retry in MATLAB mex -setup and show compiler in the list to select
compiler for matlab.PNG

Iniciar sesión para comentar.

Respuestas (1)

Matz Johansson Bergström
Matz Johansson Bergström el 28 de En. de 2015
As the error message says you are missing a suitable compiler to create mex files. See mathworks Mex files.
  2 comentarios
zhang qi
zhang qi el 28 de En. de 2015
i think the most important thing is how to create the compiler
Titus Edelhofer
Titus Edelhofer el 28 de En. de 2015
Hi,
take a look at the list of supported compilers, choose one and install it. Then run mex -setup again.
Titus

Iniciar sesión para comentar.

Categorías

Más información sobre Troubleshooting in MATLAB Compiler SDK en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by