Why does generating code for Intel x86-64 Linux targets include Windows header functions in code generated by Embedded Coder with MATLAB R2022b?
Show older comments
I am trying to generate code for a Linux target from a Windows machine using Embedded Coder in MATLAB R2022b.
I have a model that is configured to execute concurrently on multiple Intel x86-64 Linux cores. Hence, performing code generation from those models generates codes containing Mutex locks and semaphores. The issue arises that all the functions used to implement the locks and semaphores uses windows functions as contained in "rtw_windows.h".
However, since my end goal is to deploy it to a Linux target, I need to be able to replace these functions with their POSIX counterparts so that I can build them on Linux targets.
How can I achieve this workflow?
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware 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!