MATLAB: Compiling MEX files with Visual C++ 2010 with matlab2009a

2009acompilingmatlab 2009amexvisual c++ 2010

I'm trying to get MATLAB 2009a to find Visual C++ 2010, but it doesn't seem to. Is there a patch available?

Best Answer

One way is to do the following:
1) Start with files that already work for a previous version, such as 2008, and then modify them as Matt Fig suggested. e.g., start with the following files:
msvc90engmatopts.bat
msvc90opts.bat
msvc90opts.stp
2) Copy them to new files with 100 instead of 90. e.g.,
msvc100engmatopts.bat
msvc100opts.bat
msvc100opts.stp
3) Edit these new files and make obvious changes:
2008 --> 2010
9.0 --> 10.0
90 --> 100
9 --> 10
and in the msvc100opts.stp file make the additional change:
"15.0" --> "16.0"
Related Question