Undefined reference for time.h

Hi all,

I am using Automation Studio target for Simulink. I recently upgraded from MATLAB R2020a to R2024a.

After successfully generating code from Simulink, if I try to build the code in Automation Studio I get an error “undefined reference to ‘time’” for a few C files that include the “time.h” standard library.

time() is a function defined in time.h. Interestingly enough, I am not getting this undefined reference error for other time.h functions like localtime().

Has anyone seen this before? Thank you!

any expert here who can help Matt?