Åke Jacksen

#pragma options align= packed and CodeWarrior for ColdFire V6.3

Discussion created by Åke Jacksen on Nov 8, 2006
Latest reply on Nov 8, 2006 by Åke Jacksen
We try to upgrade to from CodeWarrior for ColdFire V4.0 to CodeWarrior for ColdFire V6.3
We have compiled the code below with the old compiler without any problem but when we use the new compiler we get following error:
What shall we do to fix this problem?
#pragma options align= packed
typedef struct
   unsigned char event_msg_id;     // TLMI_TLEVENT | TLMI_DCT_DSU_EVENT_NO_LOCAL | TLMI_DCT_DSU_EVENT
   unsigned char from_node;        // Source node for the event, used with appack
   unsigned char event_type;       // Type of event, see evtdef.h
   unsigned char appack_tid;       // The task id for the appack
   unsigned char appack_id;        // The appack id we should send back
   event_type info;                // The event it self...
} tl_event_msg_type;
#pragma options align=reset
=typedef struct
>illegal #pragma
>declaration syntax error