필터 지우기
필터 지우기

Errors while building mex

조회 수: 1 (최근 30일)
Harsha Nimje
Harsha Nimje 2020년 3월 5일
답변: Mark McBroom 2020년 4월 5일
I am trying to compile the code using command "mex For_Demo.c" where For_Demo.c is the auto generated code.
While doing so I am getting the following error
Could you please suggest whats wrong.
I have already kept all the required files on the current path.
  댓글 수: 1
Harsha Nimje
Harsha Nimje 2020년 3월 5일
Getting this error now.

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

답변 (1개)

Mark McBroom
Mark McBroom 2020년 4월 5일
I believe the 4 missing symbols are functions normally provided by the AUTOSAR RTE. Simulink and Embedded coder do not generate these functions. In order to get mex to compile/link without errors, you will need to provide stub C functions... but more importantly you need to figure out what you will do with the mex function. How do you plan to get inputs from MATLAB to the AUTOSAR runnables? How do you plan to get results back from your runnable C code to MATLAB? Not quite sure what you are trying to accomplish by producing a mex file, but if you are trying to test the generated C code, a better approach is to use SIL mode. This link explains how to test autosar components.

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by