MinGW compiler not recognising by MATLAB2015b even installed from Add On. how to install it correctly so that i do not get any error with command mex -setup

1 view (last 30 days)
MinGW compiler not recognising by MATLAB2015b even installed from Add On. how to install it correctly so that i do not get any error with command mex -setup
  2 Comments
Subin Kuttappan Stellal Mary
What is the output of the command :
mex -setup
It should show something like this after installing the compiler.
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 C compiler, select one from the following:
MinGW64 Compiler (C) mex -setup:C:\Users\skuttapp\AppData\Roaming\MathWorks\MATLAB\R2015b\mex_C_win64.xml C
Microsoft Windows SDK 7.1 (C) mex -setup:'C:\Program Files\MATLAB\R2015b\bin\win64\mexopts\winsdk-7.1_c.xml' C
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
Christopher  Davis
Christopher Davis on 9 Feb 2016
I've had a similar issue.
https://www.mathworks.com/matlabcentral/answers/264853-trying-to-setup-mingw-4-9-2-for-mex
What happens when you call
>> command = 'pwd';
>> [status, cmdout] = system(command);

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!