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;

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 16일

0 개 추천

You have to chose your compiler. In Matlab command
mex -setup
Then choose your compiler

댓글 수: 2

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by