我是用 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
08/02 23:35, 1F
→
08/02 23:37, , 2F
08/02 23:37, 2F
→
08/02 23:39, , 3F
08/02 23:39, 3F
→
08/03 00:12, , 4F
08/03 00:12, 4F
推
10/26 17:46, , 5F
10/26 17:46, 5F