Error while creating s-function build related to real_T and time_T
I have C project and I’m trying to build a s-function for the C-project so that I can use the s-function for simulations in loop with some plant models. However I’m getting the following error
simstruc_types.h:134:5: error: unknown type name ‘real_T’ real_T** taskTime
rtw_solver.h:55:5: error: unknown type name ‘time_T’ time_T* stepSizePtr;
The same errors reflected in many other files. I just gave two examples just to explain the scenario. What should I do to get rid of the error?I have C project and I’m trying to build a s-function for the C-project so that I can use the s-function for simulations in loop with some plant models. However I’m getting the following error
simstruc_types.h:134:5: error: unknown type name ‘real_T’ real_T** taskTime
rtw_solver.h:55:5: error: unknown type name ‘time_T’ time_T* stepSizePtr;
The same errors reflected in many other files. I just gave two examples just to explain the scenario. What should I do to get rid of the error? I have C project and I’m trying to build a s-function for the C-project so that I can use the s-function for simulations in loop with some plant models. However I’m getting the following error
simstruc_types.h:134:5: error: unknown type name ‘real_T’ real_T** taskTime
rtw_solver.h:55:5: error: unknown type name ‘time_T’ time_T* stepSizePtr;
The same errors reflected in many other files. I just gave two examples just to explain the scenario. What should I do to get rid of the error? simulink, s-function, build MATLAB Answers — New Questions