mex is configured to use Microsoft visual C++, but when running the code it builds using MINGW64 compiler why?
Mostrar comentarios más antiguos
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. 

Respuestas (1)
Hassaan
el 2 de En. de 2024
0 votos
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
Categorías
Más información sobre MATLAB Support for MinGW-w64 C/C++ Compiler en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!