mex setup doesn't recognize vs10 compiler

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.

Réponses (1)

Walter Roberson
Walter Roberson le 1 Mar 2012

0 votes

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 commentaire

Cy
Cy le 1 Mar 2012
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,

Connectez-vous pour commenter.

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange

Question posée :

Cy
le 1 Mar 2012

Community Treasure Hunt

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

Start Hunting!

Translated by