MATLAB: Does the custom TLC complain that commontargetlib.tlc does not exist after upgrading to MATLAB R2017a

Embedded Coder

I have a custom system target file based off of ert.tlc. When I tried to upgrade to MATLAB R2017a, I could no longer build my model because I get an error that "commontargetlib.tlc" does not exist. How do I fix this?

Best Answer

In MATLAB R2016b and earlier, ert.tlc included the file "commontargetlib.tlc". This file no longer exists and is not needed for ert.tlc in MATLAB R2017a. If your system target files do not rely on functions from "commontargetlib.tlc" which are concerned with semaphores and mutexes, you can resolve the issue by removing the following line in your TLC code.
%include "commontargetlib.tlc"