作者silfarion (风随行)
看板MATLAB
标题[问题] 请问关於matlab制作dll的问题
时间Fri Nov 11 15:25:25 2011
因为需要制作matlab的dll给其他环境用,想先照建议做个小程式尝试,所以就找了,找到要使用mcc -m <filename>
但是matlab在跑这个指令的时候却跑了三个多小时还没跑完,这是什麽问题呢?
若使用deploytool的话也是卡在build project的画面,他就一直busy不动了(就是
command栏左边的fx有出现,但是左下角一直在busy,一个小程式跑了3~4个小时还没跑完
啊)
他叫我运行的那个compopts.bat我也跑过了(在他指定的路径下),还是没改善
补充:
matlab版本:R2010a
os版本:win7
选用compiler版本:Microsoft Visual C++ 2008 Express
以下是mbuild的讯息:
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in D:\PROGRA~1\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 2008 Express in C:\Program Files (x86)\Microsoft
Visual Studio 9.0
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 Express
Location: C:\Program Files (x86)\Microsoft Visual Studio 9.0
Are these correct [y]/n? y
************************************************** **************************
Warning: Applications/components generated using Microsoft Visual C++
2008 require that the Microsoft Visual Studio 2008 run-time
libraries be available on the computer used for deployment.
To redistribute your applications/components, be sure that the
deployment machine has these run-time libraries.
************************************************** **************************
Trying to update options file:
C:\Users\wyverm\AppData\Roaming\MathWorks\MATLAB\R2010a\compopts.bat
From template:
D:\PROGRA~1\MATLAB\R2010a\bin\win32\mbuildopts\msvc90freecompp.bat
Done . . .
==================================================
==================================================
==========================================
补充:以下是编译档案的程式码
function [y,z] = Hello(a, b)
y = a+b;
z = a+2*b;
end
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.254.171.4
※ 编辑: silfarion 来自: 111.254.171.4 (11/11 15:26)
※ 编辑: silfarion 来自: 111.254.171.4 (11/11 15:28)