using mex -setup error

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 个评论

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
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

请先登录,再进行评论。

回答(1 个)

0 个投票

As the error message says you are missing a suitable compiler to create mex files. See mathworks Mex files.

2 个评论

i think the most important thing is how to create the compiler
Hi,
take a look at the list of supported compilers, choose one and install it. Then run mex -setup again.
Titus

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by