Errors while building mex

3 views (last 30 days)
Harsha Nimje
Harsha Nimje on 5 Mar 2020
Answered: Mark McBroom on 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.

Answers (1)

Mark McBroom
Mark McBroom on 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.

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!