We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am getting errors (fails to compile with numerous errors generated) with this:
typedef struct StatusByte{ unsigned int B0:1; unsigned int B1:1; unsigned int B2:1; unsigned int B3:1; unsigned int B4:1; unsigned int B5:1; unsigned int B6:1; unsigned int B7:1; };
struct StatusByte SysStatus;
void main(void){
SysStatus.B0 = 0x00; //<---ERROR HERE WHICH THROWS EVERYTHING OFF???? //I.E. No Errors when omitted //more code...... //more code......
}
Is there any single reason why you forgot to post any error messages?
They were too numerous to list.
I solved the problem. I was putting the statement before some variable declarations. I did not see a way to delete the post.
Thank-you
Which goes to show how important it is to give the full context of the code in question.
And post the full text of the error messages.
We can only help with what we can see. When you "optimize", you have to solve your own problems.