'myFile' does not name a type

Hello!

I was doing research, but nothing helped! So here I am!
I included an SD library, but when I compile this code in zip file!
It shows me an error:

PowerOS.h:24:1: error: 'PMaps' does not name a type

 PMaps = PMaps.open("map1.txt");

 ^

I'm so stressed out. This is my 3rd library that I've tested and none of them doesn't work!
I don't know what is wrong! My code is down there, and if you want to know what is this code about. It is bassicly an OS for Powerbanks! If you want to check stable versions go to github.com and search for PowerOS-MyTja.
Thanks for your time!

PowerOS (1).zip (18.5 KB)

Mitjas:
I included an SD library, but when I compile this code in zip file!
It shows me an error:

PowerOS.h:24:1: error: 'PMaps' does not name a type

PMaps = PMaps.open("map1.txt");

^

You did more than that. You added some code outside a function. Thus the error.

Mitjas:
Hello!

I was doing research, but nothing helped! So here I am!
I included an SD library, but when I compile this code in zip file!
It shows me an error:

PowerOS.h:24:1: error: 'PMaps' does not name a type

PMaps = PMaps.open("map1.txt");

^




I'm so stressed out. This is my 3rd library that I've tested and none of them doesn't work!
I don't know what is wrong! My code is down there, and if you want to know what is this code about. It is bassicly an OS for Powerbanks! If you want to check stable versions go to github.com and search for PowerOS-MyTja.
Thanks for your time!

Unless there is a reason that your code needs to be a ZIP, don't use one.
Post your code using code tags.
I am very lazy and I don't want to deal with the hassle of downloading, unzipping, and then opening your code in the Arduino IDE just to look at it.
You will see that pert is the only person who did that since your ZIP file has been only downloaded 1 time.