Hello
How did you create your project?
I highly recommend you to create your project using the project wizard and specifying you want to build for banked memory model.
This will ensure you are using the appropriate ansi library file and .prm file.
basically when you are building for BANKED memory model, the run time functions (and _CASE_CHECKED is one of those run time functions) are defined in a section called NON_BANKED.
According to its name that section MUST be placed in non banked flash.
If you did not start with the appropriate configuration you may face other such issues.
I would really recommend that you create a brand new project using the project wizard and specifying the appropriate configuration.
You will save yourself a lot of pain and time this way.
CrasyCat