I try to define a struct type in C++ in the following way:
struct fckxMsg_t {   
unsigned char     : status;
unsigned char     : data1;
unsigned char     : data2;
};
My compiler complains with:
error: 'status' was not declared in this scope unsigned char     : status;
I don't see what is wrong. Actually I just want to give the members a name. Why should it have been declared before???
 
    