猪八戒
2007-08-29, 09:56
弄了半个月都没弄出来。
谁有过把M文件编译成独立执行的可执行文件的经验啊?麻烦讲讲该怎么搞?
我写了一个简单的m文件,文件名为test.m,里面没有调用库函数。想把它编译成一个可
以在没有安装matlab的机子上独立执行的可执行文件。
我先用mcc –m test.m进行编译。然后在未装matlab,但装了vc++ 6.0的机子上安装
MCRInstaller.exe,然后解压缩MCRInstaller.zip。接着在“我的电脑”“属性”里添
加环境变量MCRInstaller: $matlab\v70\runtime\win。然后运行test.exe,就会报错:
Runtime Error!
Program:C:\Documents and Setting\桌面\test\test1\main.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
谁有过把M文件编译成独立执行的可执行文件的经验啊?麻烦讲讲该怎么搞?
我写了一个简单的m文件,文件名为test.m,里面没有调用库函数。想把它编译成一个可
以在没有安装matlab的机子上独立执行的可执行文件。
我先用mcc –m test.m进行编译。然后在未装matlab,但装了vc++ 6.0的机子上安装
MCRInstaller.exe,然后解压缩MCRInstaller.zip。接着在“我的电脑”“属性”里添
加环境变量MCRInstaller: $matlab\v70\runtime\win。然后运行test.exe,就会报错:
Runtime Error!
Program:C:\Documents and Setting\桌面\test\test1\main.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.