Mex MinGW64 problem
古いコメントを表示
Hello,
i have a problem with MinGW64 Compiler (c).
Matlab Version: R2018B
Issuse:
I am trying to build an s-function by compiler MinGW64, in Matlab is everything set correctly, but still, I am receiving the error that the compiler dost not exist. I already try to reinstall MinGW64 but It did not help.
Matlab command window:
>> 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.
You can find more information about this at:
https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
To choose a different C compiler, select one from the following:
MinGW64 Compiler (C) mex -setup:C:\Users\z637879\AppData\Roaming\MathWorks\MATLAB\R2018b\mex_C_win64.xml C
Microsoft Visual C++ 2015 (C) mex -setup:C:\app\MATLAB\R2018b\bin\win64\mexopts\msvc2015.xml C
Microsoft Visual C++ 2017 (C) mex -setup:C:\app\MATLAB\R2018b\bin\win64\mexopts\msvc2017.xml C
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
build log:
No supported compiler was found. You can install the freely available MinGW-w64 C/C++ compiler; visit https://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html. For more options, visit https://www.mathworks.com/support/compilers.
6 件のコメント
Walter Roberson
2020 年 2 月 12 日
Which version of mingw64 do you have installed? Your release does not support the latest version.
Jan Kopacka
2020 年 2 月 12 日
Jan Kopacka
2020 年 2 月 12 日
Walter Roberson
2020 年 2 月 12 日
Would you just happen to be trying to build for Simulink Real Time? MinGW 6.3 is supported in R2018b for all Simulink related compiling except Simulink Real Time.
Jan Kopacka
2020 年 2 月 13 日
Dennis Baron
2020 年 7 月 22 日
Hey Jan.
Have you solved your problem?
We did run into the same behaviour.
Best Regards
Dennis
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB Support for MinGW-w64 C/C++ Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!