Unknown compiler error message

조회 수: 11 (최근 30일)
Mus'ab
Mus'ab 2013년 3월 30일
I am trying to generate static C++ code from my matlab code, but it says build filed due to the following error ??? Unknown compiler ''. I am working on R2012b, and when I type 'ver' on command window it shows I have: Matlab coder v2.3 and Matlab compiler v4.18
any hint?
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 3월 30일
Have you done
mex -setup
Mus'ab
Mus'ab 2013년 4월 3일
Yes, thanks

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

답변 (1개)

Matt
Matt 2013년 4월 3일
First, you need to have an actual compiler installed on your system. The Matlab "compiler" does not include one.
Once this is accomplished you need to associate that compiler with Matlab: run "mbuild -setup" from the Matlab command line. It's all covered in the compiler documention.
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 4월 3일
Isn't mbuild for MATLAB Compiler? Generating C++ code is a task for MATLAB Coder, which appears to use mex, at least according to a recent Question I looked into.

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

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by