Reputation: 748
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?
Upvotes: 0
Views: 1826
Reputation: 21
With the Microsoft compiler setup I have found it to be very troublesome and causing this error not due to my setup in Matlab, but due to the installation of the MSVC components:
Upvotes: 1