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?

 Réponse acceptée

James Tursa
James Tursa le 12 Fév 2011

1 vote

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"

Plus de réponses (2)

Matt Fig
Matt Fig le 10 Fév 2011

1 vote

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 commentaires

Is that complicated to do?
Matt Fig
Matt Fig le 10 Fév 2011
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.

Connectez-vous pour commenter.

Kaustubha Govind
Kaustubha Govind le 11 Fév 2011

0 votes

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

Catégories

En savoir plus sur MATLAB Compiler dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by