mex is configured to use Microsoft visual C++, but when running the code it builds using MINGW64 compiler why?

7 ビュー (過去 30 日間)
When I do " mex -setup" it shows that mex is configured to compile using Microsoft Visual C++ 2022, but when i run the file that includes mex and other c++ program, I encounter so many errors and I noticed that Mex is building the code with MINGW 64 Compiler even though i configured it to use MCVC++. Why does it override this and uses MINGW64 instead?
Thanks in advance for anyone's inputs.

回答 (1 件)

Hassaan
Hassaan 2024 年 1 月 2 日
Verify Compiler Configuration:
  • Run mex -setup C++ in the MATLAB Command Window to check which C++ compilers are available and to ensure that the MSVC compiler is selected. Follow the prompts to select MSVC if it's not already chosen.
------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems
  • Electrical and Electronics Engineering

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by