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

1 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2016-3-19
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 个评论
John Fox
John Fox 2016-3-19
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 2016-3-19
Sorry, I do not find information about where that is defined.

请先登录,再进行评论。

更多回答(0 个)

类别

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