Atiny 2313 Error Arduino Mega 2560

Hello Everyone,

I can upload programs to the Atiny 2313 And It Works (Blink).

Im Trying To Upload A Sketch To Control A I2c Serial Display Via ISP on Arduino Mega 2560.

/*
 * Displays text sent over the serial port (e.g. from the Serial Monitor) on
 * an attached LCD.
 * YWROBOT
 *Compatible with the Arduino IDE 1.0
 *Library version:1.1
 */
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.backlight();
  Serial.begin(9600);
}

void loop()
{
lcd.print("Hi");
}

Error:
In file included from SerialDisplay.pde:8:
C:\Users\Jordan\Downloads\arduino-1.0.4-windows\arduino\libraries\Wire/Wire.h:61: error: conflicting return type specified for 'virtual size_t TwoWire::write(const uint8_t*, size_t)'
C:\Users\Jordan\Downloads\arduino-1.0.4-windows\arduino\hardware\tiny\cores\tiny/Print.h:75: error: overriding 'virtual void Print::write(const uint8_t*, size_t)'

Did I Run Out Of Space, Can I Free Space From EEPROM, Etc?

Thank You In Advance

The Wire Library will not work with the t2313 processor. You need a different library...
http://code.google.com/p/arduino-tiny/wiki/TWIMasterLibrary

Sorry To Bug You, I Dont Know How To Install That Library... I Usually Know But This One Has So Many Files , and Folders. Do I extract it all in the libraries.

Which library did you get? (There are at least two available from the Playground.)

Do I extract it all in the libraries.

Probably.

Ok I Got The Correct Librarys BUT.

I Still Get These Errors.

#include <TinyWireM.h>
#include <LiquidTWI.h>

LiquidTWI lcd(0);

void setup() {
  lcd.begin(16, 2);
  lcd.print("hello, world!");
}

void loop() {
lcd.print("Hi Im Tiny");
}

Error:
In file included from HelloWorld_i2c.pde:18:
C:\Users\Jordan\Downloads\arduino-1.0.4-windows\arduino\libraries\LiquidTWI/LiquidTWI.h:87: error: conflicting return type specified for 'virtual void LiquidTWI::write(uint8_t)'
C:\Users\Jordan\Downloads\arduino-1.0.4-windows\arduino\hardware\tiny\cores\tiny/Print.h:73: error: overriding 'virtual size_t Print::write(uint8_t)'

Thank You In Advance

The LiquidTWI depends on the Wire library. You need to use the LiquidCrystal_I2C library which is supported under the TinyWireM library.