Unknown typename

From MotoHawk
Jump to navigationJump to search

Error: unknown type name xxxxx_T,

Example: [gcc-cpp] D:\Shweta\OH6\OH6_x9_DV1\OH6_x9_DV1\OH6_x9_DV1_Q_Build\Model_5ms.c: In function 'OH6_x9_DV1_Q_Model_5ms': [gcc-cpp] D:\Shweta\OH6\OH6_x9_DV1\OH6_x9_DV1\OH6_x9_DV1_Q_Build\Model_5ms.c:7151:3: error: unknown type name 'uint64m_T' [gcc-cpp] D:\Shweta\OH6\OH6_x9_DV1\OH6_x9_DV1\OH6_x9_DV1_Q_Build\Model_5ms.c:47832:43: error: request for member 'chunks' in something not a structure or union [gcc-cpp] D:\Shweta\OH6\OH6_x9_DV1\OH6_x9_DV1\OH6_x9_DV1_Q_Build\Model_5ms.c:47833:70: error: request for member 'chunks' in something not a structure or union

This error can occur when a datatype is converted to one that is not supported by MotoHawk. This can happen for example if multiple gain blocks are cascaded in a model and the datatype is set to Inherit by Internal Rule, rather than being defined explicitly.

To fix the error, identify the location of the datatypes and specify the datatypes explicitly, or use a datatype conversion block.

For the above error, the generated code at the line of the error D:\Shweta\OH6\OH6_x9_DV1\OH6_x9_DV1\OH6_x9_DV1_Q_Build\Model_5ms.c, line: 47832 should have something like this slightly above it: /* S-Function Block: <S3>/motohawk_ain Resource: AN1M */

The block can then be found by executing hilite_system: hilite_system('<S3>/motohawk_ain')

or hilight_system(‘<S133>’).