MATLAB: Where is defined the function rt_StartDa​taLoggingW​ithStartTi​me

dependencydepflagsEmbedded Coderrt_startdataloggingwithstarttime

I am using the embedded coder to make a static library based on a simulink model. I can compile the library, but when I call this library, I have an error because rt_StartDataLoggingWithStartTime is undefined. The code that is automatically generated by embedded coder includes a function called rt_StartDataLoggingWithStartTime which is not defined anywhere. Should I had a dependency for this function?

Best Answer

At the end, I solved the problem by disabling MAT-File Logging as described here: https://lost-contact.mit.edu/afs/cs.stanford.edu/pkg/matlab-r2015b/matlab/r2015b/help/ecoder/ug/disabling-mat-file-logging.html It seems that this functionality required some include files that was not in my package.
Related Question