Re: [問題] 請問MEX-file已回收

看板MATLAB作者 (恩)時間15年前 (2010/06/17 01:37), 編輯推噓0(0017)
留言17則, 2人參與, 最新討論串2/3 (看更多)
各位強者大家好 小妹用輸入mex-setup 卻跑出這樣的結果 >> mex-setup Select a compiler: [1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2008b\sys\lcc [0] None Compiler: 1 Trying to update options file: C:\Users\Cindy\AppData\Roaming\MathWorks\MATLAB\R2008b\mexopts.bat From template: C:\PROGRA~1\MATLAB\R2008b\bin\win32\mexopts\lccopts.bat Done . . . ************************************************************************** Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/support/solutions/data/1-5C27B9.html?solution=1-5C27B9 Building with the -largeArrayDims option enables the new API. ************************************************************************** Usage: MEX [option1 ... optionN] sourcefile1 [... sourcefileN] [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN] or (to build an Ada S-function): MEX [-v] [-g] -ada <sfcn>.ads Use the -help option for more information, or consult the MATLAB API Guide. C:\PROGRA~1\MATLAB\R2008B\BIN\MEX.PL: Error: No file names given. ??? Undefined function or variable 'setup'. 請問要怎麼解決呢? 謝謝各位 ※ 引述《huiocean (恩)》之銘言: : 請問一下, : 我上網抓了一個wii mote的程式 : 他的檔案形式是M-file : 其中他會呼叫一個函數(另一個檔案) : 而那個被呼叫的函數(該檔案)的檔案形式是MEX-file : 這樣code跑出來會有error@@! : 請問該怎麼辦呢,應該要多安裝什麼軟體嗎? : 謝謝各位的解答,感激不盡QQ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.182.223

06/17 03:36, , 1F
我猜是因為減號前面要空格 "mex -setup" 才對
06/17 03:36, 1F

06/17 15:42, , 2F
謝謝你
06/17 15:42, 2F

06/17 15:56, , 3F
但是她還是會出現以下的訊息:
06/17 15:56, 3F

06/17 15:56, , 4F
??? Invalid MEX-file 因為應用程式的並列設定不正確,
06/17 15:56, 4F

06/17 15:57, , 5F
所以無法啟動。如需詳細資訊,請參閱應用程式事件記錄檔
06/17 15:57, 5F

06/17 15:57, , 6F
,或使用命令列工具 sxstrace.exe。
06/17 15:57, 6F

06/17 15:58, , 7F
(就是當我呼叫那個mex-file的時候)
06/17 15:58, 7F

06/17 16:00, , 8F
請問怎麼辦呢?謝謝各位
06/17 16:00, 8F

06/17 16:26, , 9F
這已經是另外一個問題了 應該是缺某些 Redistributable
06/17 16:26, 9F

06/18 15:10, , 10F
請問樓上是什麼意思呢?謝謝!
06/18 15:10, 10F

06/19 02:35, , 11F
這問題要解釋還真有點複雜。你有辦法把你編譯好的程式
06/19 02:35, 11F

06/19 02:37, , 12F
(.mexw32 .mexw64) 放到網路上嗎?
06/19 02:37, 12F

06/25 14:38, , 13F
請樓上大大教我<(_ _)>感恩
06/25 14:38, 13F

06/28 08:08, , 14F
所以你把編譯好的檔案上傳到網路上了嗎?
06/28 08:08, 14F

06/28 08:08, , 15F
看是要傳到免費空間或是個人空間都可以。
06/28 08:08, 15F

06/28 08:09, , 16F
不然就是不要隱身,至少讓人可以丟水球幫囉!
06/28 08:09, 16F

06/28 16:21, , 17F
請問上傳到網路有什麼作用呢? 我沒隱身了!
06/28 16:21, 17F
文章代碼(AID): #1C6Gldfj (MATLAB)
討論串 (同標題文章)
文章代碼(AID): #1C6Gldfj (MATLAB)