Problems compiling an S-function in Simulink

I have a simulink model where i use a s-function generated in Matlab in C code, and i have problems with the compilation. These are the errors:
Error occurred while executing External Mode MEX-file 'sldrtext': Error loading real-time image: undefined symbol "omp_destroy_nest_lock"
Unable to connect to the 'Simulink Desktop Real-Time' target for 'rdB'.
I think it is related with the Compiler, but I don't know how to solve it. I used the Visual Studio Compiler to generate the C code in Matlab, because MinGW64 gave me some errors.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Asked:

on 25 Oct 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!