MATLAB Answers

0

Why is MATLAB 2018b unable to find the Microsoft Visual C++ compiler after installing Microsoft Visual Studio 2019 community?

Asked by Roman Dolmatovich on 4 Jun 2019
Latest activity Commented on by Roman Dolmatovich on 6 Jun 2019
I installed Microsoft Visual Studio 2019 community, however "mex -setup" still does not successfully find the Microsoft Visual C++ 2015 compiler. This can be seen from the following output snippet of running the command "mex -v -setup":
>> mex -v -setup
Verbose mode is on.
Did not find installed compiler 'Intel Parallel Studio XE 2015 with Microsoft Visual Studio 2015 (C)'.
Did not find installed compiler 'Intel Parallel Studio XE 2016 with Microsoft Visual Studio 2015 (C)'.
Did not find installed compiler 'Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2015 (C)'.
Did not find installed compiler 'Intel Parallel Studio XE 2017 with Microsoft Visual Studio 2017 (C)'.
Did not find installed compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2015 (C)'.
Did not find installed compiler 'Intel Parallel Studio XE 2018 with Microsoft Visual Studio 2017 (C)'.
Found installed compiler 'MinGW64 Compiler (C)'.
Did not find installed compiler 'Microsoft Visual C++ 2013 (C)'.
Did not find installed compiler 'Microsoft Visual C++ 2015 (C)'.
Did not find installed compiler 'Microsoft Visual C++ 2017 (C)'.
Visual Studio 2019 community components (russian):
Cmplr.png
Which component to add? Answer details, pleas.

  0 Comments

Sign in to comment.

Products


Release

R2018b

1 Answer

Answer by Guillaume
on 4 Jun 2019

See https://www.mathworks.com/support/requirements/previous-releases.html for the list of supported compilers for each version of matlab. R2018b does not support VS 2019 (It does support 2017) and it's still not supported as of 2019a.
You will have to downgrade to VS2017 I'm afraid (or wait for it to be supported in a future release of matlab).

  2 Comments

Sank you very much. (I have problems with english, sorry). I will install VS2017 and see.
Now Matlab R2018b and VS 2017:
mex -v -setup
Verbose mode is on.
Found installed compiler 'MinGW64 Compiler (C)'.
Found installed compiler 'Microsoft Visual C++ 2015 (C)'.
Found installed compiler 'Microsoft Visual C++ 2017 (C)'.
Found installed compiler 'MinGW64 Compiler (C)'.
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.
OK.

Sign in to comment.