I am working in a project with Eclipse and I need the I2C bus to communicate with several peripherals. For that reason I have imported into my Eclipse project the Wire.h library from Arduino. The problem is when I try to compile the project, and error appears in the Wire.h file. It says something like:
"TwoWire must implement the inherited pure virtual method 'Print::write'"
Anyone can help me with this preoblem because I do not know how to solve it?
If you are using the Arduino Eclipse Plugin there are provisions made to import a complete library not just a particular file out of the library.
Highlight your project and select "import". That will present you with a selfexplanatory selection to either " import a folder containing source code ...." Or "import Arduino libraries...".
When selecting the latter it will present a list of all the libraries that come with the Arduino IDE and all the libraries in your personal libraries folder.