Using Softmodem with ATTiny85

hi guys:
I am using the ATTiny85 as microcontroller to send data to iPhone through phone Jack. The test was totally fine when I use regular Arduino. I ran the example code but it has some problem when I am trying to compile it. The following message is the error message.

In file included from SoftModemTiny.ino:1:0:
/Users/MikeLo/Documents/Arduino/libraries/SoftModemATTiny85/SoftModemTiny.h:74:15: error: conflicting return type specified for 'virtual void SoftModemTiny::write(uint8_t)'
virtual void write(uint8_t data);
^
In file included from /Users/MikeLo/Library/Arduino15/packages/arduino/hardware/avr/1.6.8/cores/arduino/Stream.h:26:0,
from /Users/MikeLo/Documents/Arduino/libraries/SoftModemATTiny85/SoftModemTiny.h:4,
from SoftModemTiny.ino:1:
/Users/MikeLo/Library/Arduino15/packages/arduino/hardware/avr/1.6.8/cores/arduino/Print.h:48:20: error: overriding 'virtual size_t Print::write(uint8_t)'
virtual size_t write(uint8_t) = 0;
^
Error compiling.

The Softmodem for ATTiny has not been update for 4 years. I think I need to fix something in the library. Does anyone have experience with it?

The following is the example code.

#include <SoftModemTiny.h>
#include <ctype.h>

SoftModemTiny modem;

void setup()
{
modem.begin();
}

void loop()
{
modem.write(0xff);
modem.write(0x11);
}

I think I need to fix something in the library.

The message does everything you need except actually edit the file. What problem are you having making the needed change?

The message is telling you that the library provides a method called write() that returns nothing (void) but that the method should have a return type of size_t and should return the number of bytes actually written.

hi guys:
I am working on a project that associate with Softmodem which is using ATtiny85 to connect to iPhone Jack . It was working well when I am using Arduino Mega or UNO. However, when I switch to ATTiny85 and using SoftModemTiny library the Arduino IDE compiler give me the error message as follow.

In file included from SoftModemTiny.ino:1:0:
/Users/MikeLo/Documents/Arduino/libraries/SoftModemATTiny85/SoftModemTiny.h:74:15: error: conflicting return type specified for 'virtual void SoftModemTiny::write(uint8_t)'
virtual void write(uint8_t data);
^
In file included from /Users/MikeLo/Library/Arduino15/packages/arduino/hardware/avr/1.6.8/cores/arduino/Stream.h:26:0,
from /Users/MikeLo/Documents/Arduino/libraries/SoftModemATTiny85/SoftModemTiny.h:4,
from SoftModemTiny.ino:1:
/Users/MikeLo/Library/Arduino15/packages/arduino/hardware/avr/1.6.8/cores/arduino/Print.h:48:20: error: overriding 'virtual size_t Print::write(uint8_t)'
virtual size_t write(uint8_t) = 0;
^
Error compiling.

I wonder if anyone has this time kind of issue before.

Do not cross-post. Threads merged.