C

Asked • 05/28/19

Using of two Simulink/MATLAB static libraries?

I have C application which uses two **static** libraries. Source code for these libraries are generated and built by Simulink/MATLAB. The problem is that Simulink generates **extern non-static** function `real_T rt_urand_Upu32_Yd_f_pw(uint32_T *u)` for block "Uniform Random Number" into the file MyModel.c for each model. And when I include these libraries in my C application I got linker error of function redefinition. Is there any way to change code generation process in Simulink?

1 Expert Answer

By:

Inactive Tutor answered • 5h

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.