Simulink Codegen for multiple models
Hi
I’m trying to generate C code from multiple models and run them using my own C program.
Problem is all the models include definitions for specific functions, for instance
look1_binlxpw. and C++ linker doesn’t like multiple definitions. Is there anyway to force it include these common functions in another translation unit (another .c file).
I’ve seen help pages about using model reference hierarchies for doing this, but unfortunately that doesn’t apply to my current use case.
thanksHi
I’m trying to generate C code from multiple models and run them using my own C program.
Problem is all the models include definitions for specific functions, for instance
look1_binlxpw. and C++ linker doesn’t like multiple definitions. Is there anyway to force it include these common functions in another translation unit (another .c file).
I’ve seen help pages about using model reference hierarchies for doing this, but unfortunately that doesn’t apply to my current use case.
thanks Hi
I’m trying to generate C code from multiple models and run them using my own C program.
Problem is all the models include definitions for specific functions, for instance
look1_binlxpw. and C++ linker doesn’t like multiple definitions. Is there anyway to force it include these common functions in another translation unit (another .c file).
I’ve seen help pages about using model reference hierarchies for doing this, but unfortunately that doesn’t apply to my current use case.
thanks simulink, code generation, multiple models MATLAB Answers — New Questions