In file included from AttinySoftwareSerial.ino:1:
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:48: error: expected class-name before '{' token
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:92: error: 'size_t' does not name a type
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:97: error: 'Print' has not been declared
I'm confused why this is, because I can upload the code just fine onto the Arduino itself, and I've also been able to use the Arduino to upload the Blink example onto the Attiny. Any help would be appreciated, thanks!
I turned on verbose logging and got all sorts of additional errors. It appears that the built-in SoftwareSerial library relies on other parts of the Arduino library that are not compatible with the ATtiny85. I think you have to find a third-party software-serial library designed to run on the ATtiny85.
In file included from AttinySoftwareSerial.ino:1:
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:36:20: warning: Stream.h: No such file or directory
In file included from AttinySoftwareSerial.ino:1:
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:48: error: expected class-name before '{' token
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:92: error: 'size_t' does not name a type
C:\Program Files (x86)\Arduino\libraries\SoftwareSerial/SoftwareSerial.h:97: error: 'Print' has not been declared
The problem seems to be that SoftwareSerial can't find Stream.h, which would also explain the errors on lines 48 and 97, since Stream and Print are both parts of that library. I tried uploading a dummy file that includes Stream.h to the attiny and they seem to compatible.
Any ideas on how to fix this or why this is happening would be appreciated.