This drives my crazy: I have a simulink model with an s-function generated by the s-function builder. I use some external header and library files (lib/dll) and all works in simulink-normal-mode.
But if I try to run my model in rapid accelerator or try to build the model for code generation I get LNK2019
errors. It seems that for code generation, Simulink does not know about my header-files (include folder) and my lib-files (folder and files) anymore. But I did specify all of these within the mex command for my s-function. Otherwise, the model wouldnt work in normal-mode.
Is there something I did miss that I should do for code generation?