The error message shows that the file 'test1_wrapper.c' cannot be found by the compiler.
This file is generated by the S-Function Builder and contains C-code that is called by the S-Function. The S-Function Builder automatically includes this wrapper file in the compilation of the generated code.
However, in your case, you are trying to use a simple S-Function block to call this S-Function. This block does not “know” that there is a wrapper file somewhere.
You need manually to add this C-file as additional source file in the configuration parameters under “Code Generation->Custom Code” in order to compile this model.
Best Answer