I have the following typedefs. Pub type keeps two ints, and the pub_table keeps an array of publishers and an int.
typedef pub{
int nodeid;
int tid
};
typedef pub_table{
pub table[TABLE_SIZE];
int last
};
Then on line pt.table[pt.last] = p;
I'm getting an error saying
" Error: incomplete structure ref 'table' saw 'operator: ='"
if
:: node_type == publisher ->
pub p;
p.nodeid = node_id;
p.tid = topic_id;
pt.last = pt.last + 1;
pt.table[pt.last] = p;
fi
Unfortunately I cannot see what's wrong on that line?