找回密码
 注册
Simdroid-非首页
查看: 92|回复: 2

matlab编译M文件出错

[复制链接]
发表于 2011-9-8 15:40:27 | 显示全部楼层 |阅读模式 来自 浙江杭州
我在编译M文件生成DLL时,一直出现如下错误:
If you don't have Administrator Privileges, you can try to register the component for you only with '/useronly' flag
  C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: mwregsvr for C:\Documents and Settings\Administrator\桌面\M文件\mytool\src\mytool_1_0.dll failed. If you are not running MATLAB as Admin, start MATLAB as Admin or if you build with Deploytool, select 'Register the resulting component for you only on the development machine' in Project Settings->Advanced Tab, or specify '-u' switch in mcc command to register the resulting COM component for the current user only. See http://www.mathworks.com/help/toolbox/matlabxl/ug/bsl9h74.html#bst3f2f-1 for more information
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable.
我编译器选择的是VC++6.0,在另外一台电脑上也是出现同样错误,我以前成功编译过,不过系统重装后就不行了,求高手
发表于 2011-9-8 19:00:17 | 显示全部楼层 来自 江苏南京
Simdroid开发平台
mbuild -setup试过么
回复 不支持

使用道具 举报

发表于 2011-9-19 15:22:30 | 显示全部楼层 来自 北京
matlab不要是64位的,我曾经尝试64位matlab编译出32位程序,安装VC6.0编译器的时候出现的就是这错误。另外mex –setup,mbuild –setup两个都不能少
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-6 08:53 , Processed in 0.031651 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表