SRC\file.c:769: error: [#121] a case label may only be used within a switch Problem: The case is outside of switch region. Reasons: 1. Might be that switch is forgotten to be mentioned. 2. The number of opening and closing brackets before the error doesn't match. I had this problem when introduced IF condition inside one of the case elements prior the error line. This IF had less brackets, than needed, which resulted in wrong switch termination by compiler. Note: If this is the case you shall correct the problem and recompile, before analysing consecutive warnings and errors. It is because the compiler doesn't have correct understanding of the structure of you code.
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorWarnings are important! Archives
May 2017
Categories |