Why do I get an error after changing the “getHeaderFile” method for an enum type to return a different header?
I am using MATLAB R2023b. I am trying to generate code from a Simulink model using Embedded Coder. I have an enum type, "myEnum". I set the header of this enum to "myHeader1.h" inside the "getHeaderFile" method. However, now I want to switch the header to "myHeader2.h", so I edited this method to return "myHeader2.h" instead. When I try this and then generate code, I get an error,
Error:The header file name myHeader1.h for data type ‘myEnum’ does not match the shared header file name myHeader2.h.
How do I work around this error?I am using MATLAB R2023b. I am trying to generate code from a Simulink model using Embedded Coder. I have an enum type, "myEnum". I set the header of this enum to "myHeader1.h" inside the "getHeaderFile" method. However, now I want to switch the header to "myHeader2.h", so I edited this method to return "myHeader2.h" instead. When I try this and then generate code, I get an error,
Error:The header file name myHeader1.h for data type ‘myEnum’ does not match the shared header file name myHeader2.h.
How do I work around this error? I am using MATLAB R2023b. I am trying to generate code from a Simulink model using Embedded Coder. I have an enum type, "myEnum". I set the header of this enum to "myHeader1.h" inside the "getHeaderFile" method. However, now I want to switch the header to "myHeader2.h", so I edited this method to return "myHeader2.h" instead. When I try this and then generate code, I get an error,
Error:The header file name myHeader1.h for data type ‘myEnum’ does not match the shared header file name myHeader2.h.
How do I work around this error? slxc, _sharedutils, header, enum, enumeration, sharedheader MATLAB Answers — New Questions