【发布时间】:2017-03-02 21:05:29
【问题描述】:
使用 Matlab 2013b,我运行命令 mex -setup 并得到结果:
>> mex -setup
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013b/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
我的问题是,在 Matlab2016a 下我看不到这条消息 - 我只得到以下结果:
>> mex -setup
MEX configured to use 'Microsoft Visual C++ 2012 (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
请问,我怎么能看到这条消息
"Welcome to mex -setup. This utility will help you set up etc"
非常感谢。
【问题讨论】:
-
因为已经配置好了。第二条消息告诉你“嘿,这里没什么可做的,它已经为
'Microsoft Visual C++ 2012 (C)'配置了” -
感谢您的帮助。我想更改编译器,即我想使用intel c++compiler。我怎么能这样做?
-
According to the documentation,如果有a supported compiler,输入
mex -setup C++就会出现