错误:无效的MEX文件,找不到指定的模块 [英] Error: Invalid MEX file, the specified module could not be found

查看:2163
本文介绍了错误:无效的MEX文件,找不到指定的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在笔记本电脑上成功编译了Mex文件.但是当我运行它时,它显示为Invalid mex file 'c:\newfolder\filename.mexw32' The specified module could not be found.

I have compiled Mex file successfully on my laptop. But when I am running it, it says Invalid mex file 'c:\newfolder\filename.mexw32' The specified module could not be found.

System specification:  
OS: windows 7  
MATLAB 2010a  
Microsoft Visual Studio 2008.  

相同的mex文件已编译并在XP SP3下的PC上成功运行.

The same mex file is compiled and run successfully on my PC under XP SP3.

推荐答案

此MathWorks支持链接提出了您的问题的两个可能原因:

This MathWorks support link suggests two possible reasons to your problem:

  1. 您没有MEX函数所依赖的所有必需库.
  2. 您正在与编译时版本不同的MATLAB上运行MEX文件.

无论哪种方式,要找到此错误的根源,它都表示您需要列出所有依赖的库文件并在试图运行MEX文件的系统中验证它们的存在,并建议使用Dependecy Walker 是实现此目的的工具.

Either way, to locate the source of this error it says that you need to list all dependent library files and verify their existence in the system you're trying to run the MEX file on, and also recommends the Dependecy Walker as the tool to to do that.

这篇关于错误:无效的MEX文件,找不到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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