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

18 Ansichten (letzte 30 Tage)
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.

Antworten (1)

Guillaume
Guillaume am 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 Kommentare
Roman Dolmatovich
Roman Dolmatovich am 4 Jun. 2019
Sank you very much. (I have problems with english, sorry). I will install VS2017 and see.
Roman Dolmatovich
Roman Dolmatovich am 6 Jun. 2019
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.

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by