[ERROR]
A directive only allowed inside of s structured type definition was found without a leading STRUCT or UNION.
Not all assembler backends do support structured types. Assembler not supporting them will not issue this message.
field1: DS.W 1
field2: DS.W 1
ENDSTRUCT
Check the STRUCT directive at the start.
myType: STRUCT
field1: DS.W 1
field2: DS.W 1
ENDSTRUCT