I have a model with a Level 2 S-Function. I am trying to generate code for that model but I am getting the following compiler errors regarding the shipped "simulink.c" file. Why is this? When I using "mex" I am able to build the S-Function without any errors.
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(106) : error C2059: syntax error : 'type'
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(218) : error C2100: illegal indirection
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(218) : error C2440: 'initializing' : cannot convert from 'void *' to 'DimsInfo_T'
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(243) : error C2100: illegal indirection
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(243) : error C2440: 'initializing' : cannot convert from 'void *' to 'DimsInfo_T'
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(267) : error C2100: illegal indirection
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(267) : error C2440: 'initializing' : cannot convert from 'void *' to 'DimsInfo_T'
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(287) : error C2100: illegal indirection
C:\PROGRA~1\MATLAB\R2014a\simulink\include\simulink.c(287) : error C2440: 'initializing' : cannot convert from 'void *' to 'DimsInfo_T'
Best Answer