[問題] Matlab 64bit 版本的mex已回收

看板MATLAB作者時間15年前 (2010/08/02 21:50), 編輯推噓1(104)
留言5則, 3人參與, 最新討論串1/1
我是用 win7 64位元,裝 Matlab2008b。 書本是看洪維恩的Matlab7程式設計。 其最後一章是教如何使用 Matlab 呼叫 C 函數, 但我按照書的程序去做,裡面沒有隨 Matlab 而來的 Lcc 編譯器。 ---------------------------------------------------------------------------- >> mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? y Select a compiler: [0] None Compiler: 0 mex: No compiler selected. No action taken. ************************************************************************** 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. ************************************************************************** ------------------------------------------------------------------------------ 若是選用其他的編譯器,但是裡面沒有我安裝的編譯器 Dev-C++: ------------------------------------------------------------------------------ >> mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? n Select a compiler: [1] Intel C++ 9.1 (with Microsoft Visual C++ 2005 linker) [2] Intel Visual Fortran 10.1 (with Microsoft Visual C++ 2005 linker) [3] Intel Visual Fortran 9.1 (with Microsoft Visual C++ 2005 linker) [4] Microsoft Platform SDK 14.0 [5] Microsoft Visual C++ 2005 [6] Microsoft Visual C++ 2008 [7] Microsoft Visual C++ 2008 Express [0] None Compiler: --------------------------------------------------------------------------- 請問接下來我應該怎麼做?謝謝! 我C跟Matlab都是新手程度而已。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.85.174.70

08/02 23:35, , 1F
目前 64 位元 MATLAB 並沒有內建 C Compiler。
08/02 23:35, 1F

08/02 23:37, , 2F
Dev C++ 附的編譯器是 MinGW,目前不在預設支援名單上
08/02 23:37, 2F

08/02 23:39, , 3F
初學者建議上網抓免費的 Visual C++ Express 回來用。
08/02 23:39, 3F

08/03 00:12, , 4F
感謝指導!
08/03 00:12, 4F

10/26 17:46, , 5F
我想問一下64位元可以用 X86的compiler 嗎?
10/26 17:46, 5F
文章代碼(AID): #1CLiq8rs (MATLAB)