The error message is due to a limitation with the Microsoft compiler running out of stack. For more information about the Microsoft compiler error C1063, please refer to following online documentation:
- Open a command prompt as administrator mode from the following path:
- In the command prompt, navigate to the path of the compiler used in Simulink:
- Execute the following command to set the increase stack size:
- Go to 'Configuration Parameter > Code Generation > Build Process > Build Configuration'. Set this option to 'Specify'
- Add '/F <stack size>' to 'C Compiler' options
- For additional information, please refer to following:
- https://docs.microsoft.com/en-us/cpp/build/reference/f-set-stack-size?view=msvc-160