开发者

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.


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜