It compiles fine for me.
I'm using the Arduino-Tiny core.
Which core are you using?
Have you successfully uploaded sketches to an ATtiny85 in the past?
i tried adding that to the top, still getting the same error about the byte
i have uploaded sketches to attinys before but ive recently rebooted and had to install the arduino software again. what core do i need?
the one i have is from high low tech or something? for 45/85
If it says byte does not name a type, it probably means that your custom core doesn't define the byte type. The byte type isn't standard C, it's an alias used by the Arduino framework. Replace your byte types with unsigned char or do: