Errors while building mex

1 Ansicht (letzte 30 Tage)
Harsha Nimje
Harsha Nimje am 5 Mär. 2020
Beantwortet: Mark McBroom am 5 Apr. 2020
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.

Antworten (1)

Mark McBroom
Mark McBroom am 5 Apr. 2020
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.

Kategorien

Mehr zu Write C Functions Callable from MATLAB (MEX Files) 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