How do I associate a C compiler (not MinGW)?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to call from MATLAB function from a lib file (compiled in C - probably in MSVS).
All instructions I found on Mathworks get me: "No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler"
I would have followed the instruction but I've noticed this: "Library (.lib) files generated by Microsoft® Visual Studio® are not compatible with MinGW"
So I rather not to. I have MSVS installed on my (windows) computer, I can't find anywhere instructions of how to 'tell' Matlab to work with this compiler.
Any one can point me to instructions how to define a C compiler i Matlab (other than MinGW)?
P.S. I am using the coder toolbox and generating MEX files all the time so I guess somewhere my Matlab does have access to a C compiler
0 commentaires
Réponses (1)
Walter Roberson
le 10 Déc 2017
Modifié(e) : Walter Roberson
le 10 Déc 2017
mex -v -setup C
Note: if your VS compiler is not "Professional" then it will probably not work with MATLAB, unless you are using a fairly old version of MATLAB, or you are using VS 2017 with R2016b or newer.
Also, there are some subtle version conflicts: for example in R2017a, VS 2017 is not supported for MATLAB Compiler SDK or MATLAB Coder, and in R2017b, VS2017 is not supported for Stateflow.
0 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Support for MinGW-w64 C/C++ Compiler dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!