How to Automatically detect MicrosoftVisual C++ 2019 v16.0 | nmake (64-bit Windows) toolchain in code generation setting ?

조회 수: 31 (최근 30일)
Hi ,
I have set setting for the toolchain "Automatically locate an installed toolchain" so it is selecting MINGW64 | gmake (64-bit windows). Instead of this i want it should detect "MicrosoftVisual C++ 2019 v16.0 | nmake (64-bit Windows)" automatically. I have already installed Microsoft visual c++ 2015-2019 redistributable (x64). check the attached image.
Note: I do not wanted to change " "Automatically locate an installed toolchain", it should detect automatically "MicrosoftVisual C++ 2019 v16.0 | nmake (64-bit Windows)"
Please help on this topic.

채택된 답변

Umar
Umar 2024년 7월 5일
Hi Anup,
To debug this problem, Open the System Properties window by right-clicking on "This PC" or "My Computer" and selecting "Properties."Click on "Advanced system settings" and then "Environment Variables."Under "System variables," check if the path to the Microsoft Visual C++ 2019 toolchain is included in the "Path" variable. If not, add it by clicking "New" and entering the path. Then, Open Matlab and go to the "Home" tab. Click on "Environment" and select "Add-Ons" > "Manage Add-Ons." Check if the Microsoft Visual C++ 2019 toolchain is listed. If not, you may need to install it or configure Matlab to recognize it. In Matlab, go to the "Home" tab and click on "Environment" > "Add-Ons" > "Manage Add-Ons." Select "Toolchains" from the left pane and ensure that the Microsoft Visual C++ 2019 toolchain is visible and selected as the default toolchain. Afterwards, check Matlab Compiler Settings, Go to "Home" > "Environment" > "Preferences" > "MATLAB" > "General" > "MATLAB Compiler." Verify that the Microsoft Visual C++ 2019 toolchain is set as the default compiler for building MEX files. After making these changes, restart Matlab to ensure that the new toolchain settings take effect. By following these detailed steps, you can configure Matlab to automatically detect the "Microsoft Visual C++ 2019 v16.0 | nmake (64-bit Windows)" toolchain while keeping the setting for "Automatically locate an installed toolchain" unchanged. This should enable Matlab to use the desired toolchain for compilation and building processes seamlessly.
  댓글 수: 4
Anup Patil
Anup Patil 2024년 7월 9일
Hi Umar,
Thank you for your detailed explanation. I will follow the process which you told and if anything needed will ask you. But Thank you again , Have a nice day..!
Umar
Umar 2024년 7월 9일
Hi Anup,
Thank you for your kind words and confirmation of your intention to follow the outlined process. I'm glad the explanation was helpful to you. Please don't hesitate to reach out if you have any questions or need further clarification along the way. Have a wonderful day ahead!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Build Configuration에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by