matlab 2021b cant find microsoft visual compiler from vs 2019

6 Ansichten (letzte 30 Tage)
Youssef Elshebani
Youssef Elshebani am 23 Jun. 2022
Beantwortet: Rishav am 9 Okt. 2023
I saw this is a deep rooted problem with matlab since the 2015 days
I am trying to add the microsoft visual C++ compiler, but matlab can't see it.
i tried installing hte compiler no success, i tried installing microsoft visual studio 2019 (the version that is supposed to be supported from mathworks release notes) still no success, it just tells me it cant find the microsoft visual compiler when i trype in mex -setup -v
help please

Antworten (1)

Rishav
Rishav am 9 Okt. 2023
Hi Youssef,
I understand that you are facing issues with detecting Visual Studio 2019 using MATLAB R2021b command line.
Uninstall all the versions of Visual studio from your machine. Then download the Visual Studio 2019 from the below mentioned link:
Then run the following command in MATLAB terminal.
>> mex -setup
It should automatically detect the Visual Studio C++ compiler for you and it will also set it if one compiler is installed.
Thank you,
Rishav Saha

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by