Cannot change mex c compiler

7 ビュー (過去 30 日間)
rafael iriya
rafael iriya 2016 年 11 月 12 日
コメント済み: rafael iriya 2016 年 11 月 13 日
I have MingW, visual C++ 2010, 2012 and 2015 installed in my machine. However when i use mex -setup it only shows MingW. Did anything change in 2016b? It does not even ask me if i want to choose it from a list, like I've seen previously...
The only thing it shows after the command is:
>> 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. 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/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN

採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 12 日
Use
mex -v -setup C
for more information.
I speculate that the VS versions you have installed might be the Express or Community versions instead of the Professional versions.
  1 件のコメント
rafael iriya
rafael iriya 2016 年 11 月 13 日
I installed 2013 professional and it worked! Thx a lot!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by