Filter löschen
Filter löschen

how to enable mex -setup for newer compiler (Visual Studio 2022) on older MATLAB (R2018a) ?

39 Ansichten (letzte 30 Tage)
I want to use a newer compiler with an older MATLAB.
Is there a mechanism by which we could configure R2018a's mex -setup to allow use of e.g. Visual Studio 2022 C/C++ ?
I understand that such a configuration might not be supported, and we'd be "on our own".

Antworten (1)

Bruno Luong
Bruno Luong am 27 Jul. 2023
Bearbeitet: Bruno Luong am 27 Jul. 2023
Go to bin\win64\mexopts under matlabroot folder
Select one of the xml file (most recent supported MSVS C/C++)
Copy it there, rename and and mofidy to the config of 2022 MSVC.
You can compare two xml files to see what need to be changed.
We are not allowed to give you such file on most recent version, since it is copyrighted.
Good luck.
  1 Kommentar
Biyi Wang
Biyi Wang am 30 Sep. 2024 um 11:29
Bearbeitet: Biyi Wang am 30 Sep. 2024 um 11:35
Hi Bruno,
I met the similar problem, my matlab version is 2018b, and visual studio version is 2022.
I want matlab to detect the compiler integrated in the visual studio
(path:Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe)
I tried to copy and modify the associated xml file, however, I found for the newest matlab, it is only support the oneAPI.
I don't know how to modify the xml file, and I have not found something similar to solve this problem.
If you have the experience, could you please share your solution?
I really appreciate your help in advance.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by