Compiling MEX files with Visual C++ 2010 with matlab2009a

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

 Risposta accettata

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"

Più risposte (2)

Matt Fig
Matt Fig il 10 Feb 2011
You will have to modify a couple of the MATLAB bat files in order for the option to be seen. Alternatively, you could download VC++ 2008 or so.

2 Commenti

Is that complicated to do?
I assume you mean editing the files. Well, I wasn't able to do it myself, but another regular around here offered to help me. As I don't know how he feels about me giving out his work and/or contact info, I cannot say more about it. I guess it would depend on your skill level. Good luck.

Accedi per commentare.

The most reliable thing to do is get a supported compiler: http://www.mathworks.com/support/compilers/release2009a/

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by