Hi Per,
Your project use Tiny memory model.
With Tiny model, By default all variables are in the zero page (direct memory access). Variables outside the zero page can be used with pragmas or the far keyword.
To fix this error, one easy solution is to create a new project with Small memory model, then input your code to main file. You will see your project can pass build.

I have verified it from my side.
If you still can't fix it by yourself, please just let me know.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------