主题: [MATLAB混合编程] matlab转vc++方法
查看单个帖子
旧 2009-05-25, 17:10   #1
baihualin8888
初级会员
 
注册日期: 2009-03-02
年龄: 37
帖子: 4
声望力: 0
baihualin8888 正向着好的方向发展
默认 matlab转vc++方法

请问怎么把.m文件转为.dll,.h,.cpp然后在vc里调用啊,我试过:(格式:mcc -t -W libhg:<库名称> -T link:lib -h libmmfile.mlib libmwsglm.mlib 文件名) 但matlab不支持,有以下的错误:
The -t switch is no longer supported; the Compiler no longer generates C/C++
source code for M-functions (it generates wrapper functions instead, see
the documenation for -W).

The -h switch is no longer supported; the MATLAB Compiler detects M-file
dependencies automatically. But see also the documentation for the -a switch.
请指教具体的操作步骤。谢谢!
baihualin8888 当前离线   回复时引用此帖