From: Joaquim Luis on
"Jaeyeon K" <jkim(a)merrimackpharma.com> wrote in message <htegsp$9q6$1(a)fred.mathworks.com>...
> Thanks Ryan,
> It works. Initially, I tried to install SDK with .Net 4.0. Now, with the SKD you mentioned, it is working good!
> Thanks again,

Hi,

I have found that the best (not the easiest) way of setting a compiler is to NOT rely on mex -setup at all. At the end it all comes down to call the compiler with the needed options, include dir and libs. By using this approach I can now compile against the old R13 graphical libs using the newest MS compiler VS2010, or its 64-bits version for other mexs.

NO MORE "mex -setup" ultra limited choice

See an example batch file on how to do it at

http://code.google.com/p/mirone/source/browse/trunk/mex/compile_one.bat?spec=svn2171&r=2171