Matlab Mex文件编译 [英] Matlab Mex file compile

查看:120
本文介绍了Matlab Mex文件编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译一个mex文件以在matlab中使用套接字连接.问题在于,它总是说我没有安装sdk或编译器.但是我已经安装了Visual Studio 2010 Express,Visual Studio 2012 Express,Visual Studio 2012 Professional,但并没有改变错误.另外我已经安装了SDK.有什么我可以尝试的吗? Matlab版本是R2012b,我使用的是Windows 7、64位.

I'm trying to compile a mex file to use socket connection within matlab. The problem is that it is always saying that I don't have sdk or compiler installed. But I have installed visual studio 2010 express, visual studio 2012 express, visual studio 2012 professional and nothing is changing the error. Also I have installed the sdk. Is there anything that I could try? The matlab version is R2012b and I'm using windows 7, 64 bits.

谢谢!

推荐答案

您可以尝试 gnumex ,这使您可以在Windows上访问mingw编译器.它适用于 mingw-w64 ,它是

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.

这篇关于Matlab Mex文件编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆