Bug 550084 - 'unresolved inclusion "Arduino.h"' problem might be due to incorrect source files?
Summary: 'unresolved inclusion "Arduino.h"' problem might be due to incorrect source f...
Status: CLOSED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-arduino (show other bugs)
Version: 9.8.1   Edit
Hardware: PC Windows 10
: P3 blocker with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords: greatbug, greatfix, needinfo, usability
Depends on:
Blocks:
 
Reported: 2019-08-14 17:03 EDT by N247S - CLA
Modified: 2020-05-23 10:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description N247S - CLA 2019-08-14 17:03:24 EDT
I tried to fix the 'unresolved inclusion "Arduino.h"' problem for while now, and so far the only solution I could find is to include the source files via a separate project who has the root folder of the libraries as a linked resource. It works good enough for that problem, but I noticed that the source files are just messed up somehow. For example the 'Serial' class is actually called 'HardwareSerial' pseudo-named to 'SerialUSB'. The whole declaration (both in the available .c/.cpp and .h files) of the 'Serial' class cannot be found.

In short my thoughts:
	- The original problem is thought to be from some bug in the indexer
	- The indexer might not be the problem in this case, but the source files it has to 'index'/'resolve'

Package: Arduino SAMD Boards (32-bits ARM Cortex-M0+) version: 1.8.3

-- Configuration Details --
Product: Eclipse IDE 4.12.0.20190614-1200 (org.eclipse.epp.package.cpp.product)Installed Features:
 org.eclipse.platform 4.12.0.v20190605-1801
Comment 1 N247S - CLA 2019-08-14 17:09:05 EDT
Correction, the 'SerialUSB' class is pseudo-named to 'Serial'. and 'SerialUSB' cannot be found anywhere in the source codes.
Comment 2 Michael Stämmler CLA 2019-11-15 23:31:40 EST
I have the same problem...
Comment 3 Jonah Graham CLA 2020-05-23 10:54:08 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.