mex setup doesn't recognize vs10 compiler

1 visualización (últimos 30 días)
Cy
Cy el 1 de Mzo. de 2012
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.

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de Mzo. de 2012
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 comentario
Cy
Cy el 1 de Mzo. de 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,

Iniciar sesión para comentar.

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by