[其他] 請問關於matlab製作dll的問題

看板MATLAB作者 (風隨行)時間14年前 (2011/11/11 15:25), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
因為需要製作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)
文章代碼(AID): #1ElCteOR (MATLAB)