Are you sure Eclipse is pointing to the right directory structure
There might be more than one place
I'm fairly sure I have NOT got Eclipse pointing at the correct directory structure, but with no working reference environment and no documentation of the specifics of that stuff anywhere I can find on-line, I don't know what I need to change or how to change it.
Not having experience of basic eclipse either I don't have the background to be able to work it out.
If blink works, try to include the wire.h and work from there
What I did to generate the above error was exactly that, make a blank project (with the separate .h file and all that come as standard), copy in all of the actual code from blink (this compiles, uploads and runs) then add the line
It immediately flags up the problem in the IDE, and fails to compile properly saying it can't find the file.
Is there a way I can short circuit the whole directories problem, and just put symlinks in my project folder? Do I need symlinks to individual c files, or do I need symlinks to a folder for each lib, or do I need a symlink to a whole libraries folder? where should I put the the symlink(s): in the root of the project, or in a folder in the project.
Which libraries/files do I need to worry about other than the obvious ones I actually want to use myself? I gather Wprogram.h that some references say are essencial is no longer required as of 1.0, but arduino.h is? I can't find an arduino.h file, and I don't know precisely what it does. Have I got that right?
Interestingly Serial.begin(9600); and Serial.print("Hi there..."); succeed without problem.
UPDATE: I have got the LiquidCrystal library working, using a symlink in the project folder to the LiquidCrystal library folder. It only works if referenced like:
trying the same with Wire doesn't work, because it has it's own utility stuff called twi.h, and the internal include doesn't work.
I believe that the problem is that the compiler isn't recursing into sub folders to look for files that are included. I don't really know how it should work though, so I'm just stabbing in the dark.