C code generation, "unknown complier" occured

hi,when i studying how to generate c code using matlab in a book, an error in the code generation report occured:unknown complier. how can i overcome that error?
P.S. the function in my exercise is
function c=myadd(a,b)
c=a+b;

 Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 16 Déc 2012
You have to chose your compiler. In Matlab command
mex -setup
Then choose your compiler

2 commentaires

Image Analyst
Image Analyst le 16 Déc 2012
I also do "mcc -setup" - not sure if you have to do them both or not.
Azzi Abdelmalek
Azzi Abdelmalek le 16 Déc 2012
I think it's not necessary if you don't use mcc command

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by