Ada
Ada

Reputation: 624

Why "No compiler" on my Windows 7 when typing mex -setup in r2010a?

I am using Windows 7 64 bits. I need to do the mex -largeArrayDims *.c but it tells me that there is no compiler. I am trying to do this in R2010a.

I tried mex -setup but still it says there is no compiler. How can I fix this? Can you please help me? I downloaded Mingw-w64 from the project's SourceForge page (this was before the project moved to http://mingw-w64.org/) but I don't know how to use it. Any help would be really appreciated.

Upvotes: 3

Views: 4735

Answers (1)

codewario
codewario

Reputation: 21418

mingw is not supported by Matlab. You must use a compiler supported by them. I believe Visual Studio should be supported and I see no reason why it wouldn't work with the Express Editions, which are free.

EDIT http://www.mathworks.com/support/compilers/R2010a/win64.html#simulink

You need a patch for Matlab 2010a to use Visual Studio 2010. Under "Notes for the Windows (64-bit) Platform", Read item two, it should explain how to get VC++ 2010 recognized by Matlab. Hope this helps!

Upvotes: 4

Related Questions