how to deal with MEX

3 views (last 30 days)
Soon Fei Fong
Soon Fei Fong on 28 Feb 2015
Commented: Geoff Hayes on 7 Mar 2015
I need to run some code with MEX compiler. The code is something like "mex -O resize.cc". But the matlab show "Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014b/win64.html.". What i need to install to enable the MEX compiler?

Accepted Answer

Geoff Hayes
Geoff Hayes on 1 Mar 2015
Soon - you need to select a MEX compiler before you try to build/compile a MEX function. In the Command Window type
mex -setup
and you should see a list of compilers that are available for you to use on your 64-bit PC. If none appear, then go to the link you have provided, http://www.mathworks.com/support/compilers/R2014b/index.html?sec=win64, and see if you have any of the supported compilers/applications. If you don't have any, then download and install the (free) Microsoft Wndows SDK 7.1.
  1 Comment
Geoff Hayes
Geoff Hayes on 7 Mar 2015
Soon's answer moved here
it is working now. thank for your help and reply.

Sign in to comment.

More Answers (0)

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!