Clear Filters
Clear Filters

mex -setup does no find Microsoft Visual C++ Express 2010

1 view (last 30 days)
My Matlab 2013a needs Microsoft Visual C++ 2008, 2010, or 2012. Microsoft Visual C++ Express 2010 is free so I installed that. However mex -setup does not find it.
Is there an option file to edit to point to this compiler? I found c:\users\jwf10\AppData\roaming\MathWorks\Maltab\R2013a\mexopts.bat.
This looks right, but I do not know the compiler flags for Visual C++ Express 2010.

Accepted Answer

Walter Roberson
Walter Roberson on 19 Mar 2016
None of the VS Express compilers have been supported for a fair number of years now. See http://www.mathworks.com/support/compilers/R2013a/index.html?sec=win32 for the compilers supported in your version. Notice there that the no-charge SDK 7.1 is supported, so I recommend you install that.
  2 Comments
John Fox
John Fox on 19 Mar 2016
You suggested Microsoft SDK 7.1. I first installed SDK 8.1. mex -setup did not find it. I then installed SDK 7.1 This time mex -setup did find this compiler! However when I then did mex innerpart.c I got the following error:
unresolved external symbol _mxCreateDoubleMatrix_700 referenced in function _mexFunction
innerpart.mexw32 : fatal error LNK1120: 1 unresolved externals
Any suggestions. It appears the Matlab function _mxCreateDoubleMatrix_700 can not be found.
Walter Roberson
Walter Roberson on 19 Mar 2016
Sorry, I do not find information about where that is defined.

Sign in to comment.

More Answers (0)

Categories

Find more on C Shared Library Integration 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!