MATLAB: Does Matlab choose the compilers in the mex -setup based on compilers it finds on the laptop or does it give a list of compaitble compilers as in the list below

loadlibrary failsmex compiler

Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler: [1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [2] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) [4] Intel Visual Fortran 10.1 (with Microsoft Visual C++ 2005 SP1 linker) [5] Microsoft Visual C++ 2005 SP1 [6] Microsoft Visual C++ 2008 Express [7] Microsoft Visual C++ 2008 SP1 [8] Microsoft Visual C++ 2010 [9] Microsoft Visual C++ 2010 Express
[0] None
Compiler: 5

Best Answer

It lists all compilers working with your Matlab version, even those compilers are not installed.