Why am I getting a linking error about the function defined in the S-function wrapper C file when building my model?
Show older comments
I used a S-function Builder block to generate the S-function source code, TLC, and mex file for me. Then, I replace this S-function Builder block with a S-function block, giving it the name of the generated S-function.
Now, when I build the model, I got an error saying [mdl_name].obj : error LNK2019: unresolved external symbol [sfcnname]_Outputs_wrapper referenced in function [mdl_name]_step.
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!