C code generation, "unknown complier" occured

1 Ansicht (letzte 30 Tage)
lankao
lankao am 16 Dez. 2012
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;

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 16 Dez. 2012
You have to chose your compiler. In Matlab command
mex -setup
Then choose your compiler
  2 Kommentare
Image Analyst
Image Analyst am 16 Dez. 2012
I also do "mcc -setup" - not sure if you have to do them both or not.
Azzi Abdelmalek
Azzi Abdelmalek am 16 Dez. 2012
I think it's not necessary if you don't use mcc command

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by