S-function build error

Hello everybody,
I am using PX4 pixhawk 1. I created an s-function. I am trying to build simulink file but I got error. Without s-function, I don’t have any problem. However, I am not able to build simulink file with an s-function. Have you ever faced this kind of problem? Diagnostic viewer gives me this error: Error(s) encountered while building

Many thanks,
Abdullah ERASLAN