About mex -setup

3 ビュー (過去 30 日間)
Ambika P S
Ambika P S 2018 年 8 月 27 日
コメント済み: xiaosong luo 2019 年 1 月 27 日
I am trying to build 'libsvmread.mex', 'libsvmwrite.mex', 'svmtrain.mex', and 'svmpredict.mex'in MATLAB 2018a. But I get the following error when I type
>> mex -setup
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. You will be required
to update your code to utilize the new API.

採用された回答

Walter Roberson
Walter Roberson 2018 年 8 月 27 日
That is not an error. It is telling you that MinGW is set up as your compiler, and it is giving you a warning that if you have existing mex code that was developed assuming that pointers are 32 bits, that you will need to update your code. MATLAB started supporting 64 bit mex about a decade ago or so, so this is a warning for the situation where you are dealing with fairly old code.
The message you are getting is telling you that the setup functioned, and you should go ahead and use mex to build the functions.
  5 件のコメント
xiaosong luo
xiaosong luo 2019 年 1 月 27 日
i am faced with the same question,did you solve it?
xiaosong luo
xiaosong luo 2019 年 1 月 27 日
i think this answer will make a diffierence.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by