I am writing a library and have the following code in a .cpp file:
#include <Wire.h>
When trying to use the Wire library, I get the following error message:
error: Wire.h: No such file or directory In member function 'void wii_nunchuck::initialize()':
This source code file and its header file are part of my sketch (Sketch -> Add File) and is in the same directory as other sketch files that are able to successfully use Wire.h. The code compiles cleanly if I do not include Wire.h and do not use its classes.
Any idea what could be happening here?