how to change c++ default compiler

5 ビュー (過去 30 日間)
Rodrigo Estrella
Rodrigo Estrella 2017 年 9 月 27 日
コメント済み: Fawaz Sammani 2018 年 4 月 12 日
I'm using relase 2016b and i'm trying to change the default c++ compiler. When i type mex -setup i get the following:
MEX configured to use 'Microsoft Windows SDK 7.1 (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
Then i type mex -setup C++ and i get the following:
MEX configured to use 'Microsoft Windows SDK 7.1 (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.
At the end i'm not able to configure anything
  2 件のコメント
Rik
Rik 2017 年 9 月 27 日
This generally means you don't have another supported compiler installed. Each release has its own list, and some compilers don't work on some OSes.
Fawaz Sammani
Fawaz Sammani 2018 年 4 月 12 日
Hi, how can i default back to the original compiler? I ran mex -setup C++ to install MatConvNet, but now i want to remove it, and return back to the default API, how can i do that?

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

回答 (1 件)

Jatin Waghela
Jatin Waghela 2017 年 10 月 2 日
Please refer to the below documentation link to change the default compiler:

カテゴリ

Help Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by