How to Automatically detect MicrosoftVisual C++ 2019 v16.0 | nmake (64-bit Windows) toolchain in code generation setting ?
31 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Umar
on 5 Jul 2024
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 Comments
Umar
on 9 Jul 2024
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!
More Answers (0)
See Also
Categories
Find more on Build Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!