Matlab Mex file compile

浪子不回头ぞ 提交于 2019-12-05 18:41:43

You can try gnumex, which lets you access the mingw compilers on Windows. It works with mingw-w64 which is the 64 bit version of mingw. You have to install the mingw compiler suite, then run gnumex in Matlab to tell it where mingw is and set it up.

I believe that Visual Studio 2012 is only supported on the latest R2013a. Use VS2010 for your MATLAB version.

In addition, the Express editions of VS do not contain 64-bit compilers. You need to either get the Professional edition, or download the free Windows SDK.

See the list of supported compilers for more information

JackOLantern

You are asking how to compile the mex-file directly on the Matlab's command line.

An alternative would be to compile the mex-file from Visual Studio. You might be interested in my answer to

No C++ compiler found in MATLAB using mex

Have you run mex -setup to tell MATLAB which compiler you want to use?

See this page on Building MEX-Files for more information

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!