Wire library error

Hello,

I made a library that includes the Wire library. The error is telling me that “wire wasn’t declared in this scope”.
My library’s structures is this:

//file.h file: 
#ifndef file_h
#define file_h
#include <Arduino.h>

//than it follow the registers and the definitions
#endif
//file.cpp file:
#include "file.h"
#include <Wire.h>

function1{wire calls;}
function2{wire calls;}
....//code

Can someone tell what the hack is the problem with the library?

Thank you,
RobertEagle

Can someone tell what the hack is the problem with the library?

Nothing. The problem is your sketch. It doesn't, I'm willing to bet, include Wire.h, so the IDE doesn't think it needs to compile/link it in.

What you can do is make a copy of the files from the Wire library and put them into your libraries folder.

You're right.
Thank you again and excuse me for my silly mistake.

RobertEagle