mex setup doesn't recognize vs10 compiler

1 次查看(过去 30 天)
Why does Matlab (R2011a) not recognize the Visual Studio 2010 C++ compiler installed on my system. I understood there were some issues with R2010 on 64-bit systems that required a patch, but this is a 32-bit machine and R2011a.
I get:
Select a compiler:
[1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[2] Intel C++ 9.1 (with Microsoft Visual C++ 2005 SP1 linker)
[3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[4] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)
[5] Intel Visual Fortran 10.1 (with Microsoft Visual C++ 2005 SP1 linker)
[6] Lcc-win32 C 2.4.1
[7] Microsoft Visual C++ 6.0
[8] Microsoft Visual C++ 2005 SP1
[9] Microsoft Visual C++ 2008 Express
[10] Microsoft Visual C++ 2008 SP1
[11] Open WATCOM C++
[0] None
or
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2010a\sys\lcc
[2] Open WATCOM C++ in C:\Applications\watcom-1.3
[0] None
but VS 10 never shows up.
Any help would be greatly appreciated.

回答(1 个)

Walter Roberson
Walter Roberson 2012-3-1
I don't think it would not be referring to C:\PROGRA~1\MATLAB\R2010a if you are running R2011a. Please re-check the MATLAB version installed.
  1 个评论
Cy
Cy 2012-3-1
Nice catch. It turns out there are two versions of matlab installed on the system. Changed the build to point to the R2011a and that helped.
Thanks,

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler SDK 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by