mex setup doesn't recognize vs10 compiler

5 ビュー (過去 30 日間)
Cy
Cy 2012 年 3 月 1 日
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 Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by