My first library attempt

I have been struggling to make my first library to read out 24C02 eeproms. I have made a EEPROM24C02.h and a EEPROM24C02.cpp inside I use the <Wire.h> and there it goes wrong I think.

.h file

#ifndef EEPROM24C02_H
#define EEPROM24C02_H
 
#include <WProgram.h> //It is very important to remember this!
#include <Wire.h>

class EEPROM24C02 
{
public:
        EEPROM24C02();
        ~EEPROM24C02();
          byte readbyte(byte chipaddress, byte address);
          void writebyte(byte chipaddress, byte address, byte data);

};
 
#endif

This is the cpp file

#include <EEPROM24C02.h>

EEPROM24C02::EEPROM24C02()
{
  Wire.begin();
}

EEPROM24C02::~EEPROM24C02()
{
}

byte EEPROM24C02::readbyte(byte chipaddress, byte address)
{
    byte write = 1;
    byte rdata = 0x01;

    Wire.beginTransmission(chipaddress);
    Wire.send(address); 
    Wire.endTransmission();
    Wire.requestFrom(chipaddress,write);     
    while(!Wire.available())
    {}
    rdata = Wire.receive();
    Wire.endTransmission();
    return rdata;

}

void EEPROM24C02::writebyte(byte chipaddress, byte address, byte data)
{
    Wire.beginTransmission(chipaddress);
    Wire.send(address);
    Wire.send(data);
    Wire.endTransmission();            

}

When I use this sketch I get complaints about wire.h

//#include <Wire.h>
#include <Eeprom24C02.h>

EEPROM24C02 eeprom1 = EEPROM24C02();
  
  void setup() 
  { 
  }

  void loop() 
  {
    eeprom1.readbyte(0x50,1);
  }

What am I doing wrong?

Why did you comment the #inclusion of Wire out? You need to include it in the sketch as well. :)

What should I do inside my library for not use #include <wire.h> in my sketch?
I suppose this is possible or not?

What should I do inside my library for not use #include <wire.h> in my sketch?

Nothing you can do, unless you want to re-write the compiler.

OK Thanks