I'm trying to declare a structure but I keep getting an error like this
or similar depending on were I try to put __attribute__.
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
Does avr-gcc allow plain-old structures? How should I write this to get
it to compile?
struct __attribute__ ((__packed__)) rb_fifo_struct_type
{
uint8_t *head;
uint8_t *tail;
uint8_t *dptr;
};
typedef struct rb_fifo_struct_type rbuff_t;Message
structures in gcc
2008-01-24 by john