Bug 526052 - fatal error: Wire.h: No such file or directory when I add #include <wire.h>
Summary: fatal error: Wire.h: No such file or directory when I add #include <wire.h>
Status: CLOSED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-arduino (show other bugs)
Version: 9.2.0   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-15 13:15 EDT by Itamar Cohen CLA
Modified: 2020-05-23 10:54 EDT (History)
2 users (show)

See Also:


Attachments
shows compile of helloWrld - just added lib see attachment (585.78 KB, image/png)
2019-02-26 11:35 EST, Keith Sware CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Itamar Cohen CLA 2017-10-15 13:15:32 EDT
plugin version is 9.2.1.201704050430 but this was not available in the bug report form
Also get compile error:
Unresolved inclusion: <wire.h>

Board type:
Arduino/Geniuino Mega or Mega 2560


Eclipse:
Version: Neon Release (4.6.0)
Build id: 20160613-1800
Comment 1 Doug Schaefer CLA 2017-11-30 11:10:27 EST
What if you #include <Wire.h>
Comment 2 Keith Sware CLA 2019-02-26 11:35:49 EST
Created attachment 277698 [details]
shows compile of helloWrld - just added lib see attachment

virgin install of eclipse to win10 box; first hello wrld to see how it works.
Can turn onboad LED on/Off on arduino board - fine.
So added a lib for DS18B20 (Dallas Temperature) and program will now compile, so...
see pict, it shows that an H file 'OneWire.h' can not be discovered when trying to compile DallaceTemperature.cpp

Q1: Is there a missing menu on eclipse - see point [3] and point [4] - I searched stack overflow, and folks were stating, that to set up an include path required main menu - project - properties - MISSING C/C++ Build???
https://stackoverflow.com/questions/49659482/eclipse-cdt-missing-features

other stack overflow articles point out another item that is also missing from my install such as main menu - project - properties - C/C++ General - MISSING Preprocessor Include ???

I have re-installed CDT eclipse twise, no joy

I'm thinking of installing a different varient of eclipse to see if I can frig this into working and getting the missing pre-processor include menus
Comment 3 Jonah Graham CLA 2020-05-23 10:54:01 EDT
Thank you for taking the time to file a bug report about the Arduino component of the CDT project. The Arduino component is no longer maintained and will be removed from CDT 10 (Bug 562498). The final Eclipse CDT version that will include Arduino support is the CDT 9.11 series. 

Please consider using The Arduino Eclipse IDE and plug-ins named Sloeber (https://marketplace.eclipse.org/node/2637354) for your future Eclipse CDT powered Arduino development.