can not find c++ compiler detection error

4 Ansichten (letzte 30 Tage)
탁형 이
탁형 이 am 18 Jul. 2022
Bearbeitet: Walter Roberson am 18 Jul. 2022
I'm trying to use mex function with vidual studio c++ compiler.
I installed visual stuidio 2022 and sub packages related with c++ in the defalut folder.
But when I run the ' mex -setup -v'
MATLAB can not find the compilers.
How can I solve this problem?
  2 Kommentare
Rik
Rik am 18 Jul. 2022
Is that specific version of visual studio supported by your specific release? How did you make sure of that?
I you're using a sufficiently new version of Matlab, you can get the MinGW compiler from the File Exchange (or the AddOn Manager).
탁형 이
탁형 이 am 18 Jul. 2022
Thank you for your comment.
I'm using MATLAB 2021b. Also I already installed MinGW
but a speciific open toolbox need the visual studio c++ compiler.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Jul. 2022
Bearbeitet: Walter Roberson am 18 Jul. 2022
  1 Kommentar
탁형 이
탁형 이 am 18 Jul. 2022
Your answer is right.
I thought that if I install old version sub packages of VS 2022, it will work. But It was wrong.
I installed VS 2019 and the compiler was detected.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by