Arduino Eclipse V2 - cannot find Wire.h

Hello,

i am currently setting up Arduino Eclipse V2. I did it close to the guide: Arduino Eclipse Plugin - How To

And configured it as discribed here: Arduino Eclipse Plugin - How To

My Arduino Version is 1.5.7
(I chose this version, because it was the only one I managed to work. When I use other Versions I cannot compile, something goes wrong with make, even though I copied the utils folder from other Versions)

Compiling and uploding small programms works fine, but if I try to include e.g. Wire.h I get the message: “No such file or directory”.

I tried to work around this by including a link to “C:\arduinoPatched\hardware\arduino” in my project. Now the Indexer finds Wire.h in my project and I don’t get an error for my test.ino file. Nevertheless, when I compile the code i get:

“no such file or directory” in the automatic generated file .ino.cpp

Does anyone know this problem?
I hope you can help me with this.

Best regards
natasia

PS: I attached a screenshot, so you can see what I am talking about.

Okay, I found a workaround. I don’t thing its pretty but it works for me.

Here is the trick (compare Picture):

  1. copy all *.c, *.h and *.cpp files from your hardware/arduino/sam and hardware/arduino/avr folders to the arch folder hardware/arduino

  2. Right-click your project → Properties → C/C++ General → Paths and Symbols
    Add the …/hardware/arduino folder to the include directories.

best regards
natasia

The workaround doesn't seem to fully work.

If i try to call a function of Wire, like begin(), I get "undefined reference to `TwoWire::begin()"....

Does anyone know this problem?

lg
natasia.