I'm trying to use Wire.h in a multisketch project. I have a cpp file that must use Wire.h but I cannot include it. I always get "No such file or directory"
Does #include <eeprom.h> work? If so, then make sure you have put the wire.h library in exactly the same spot as (parallel to) the eeprom library. What is a "multisketch" project? One with multiple tabs?
to the.pde file (the main sketch file) then the #include <Wire.h> in the cpp file works.
http://www.arduino.cc/en/Hacking/BuildProcess says that the include path include library directories which contain a header file which is included by the main sketch file. So I guess that including Wire.h in the main sketch file is the way to go if I need Wire.h in the cpp file.
The include path includes the sketch's directory, the target directory (/hardware/core//) and the avr include directory (/hardware/tools/avr/avr/include/), as well as any library directories (in /hardware/libraries/) which contain a header file which is included by the main sketch file.