Arduino Eclipse cannot resolve serial

I am trying to set up the Eclipse and Arduino libraries. I followed the instructions located at this URL. http://arduino.cc/playground/Code/Eclipse

The problem I am facing is that my project cannot resolve Serial. Does anyone have an idea why this could be? I am using Arduino 1.0, and the instructions are written for versions prior to version 1.0.

+6
source share
3 answers
Setting the preference windows->preferences->C/C++->indexer->index unused headers. Setting the preference windows->preferences->C/C++->indexer->index source and header files opened in the editor. Setting the preference windows->preferences->C/C++->indexer->Files to index upfront . Add arduino.h and or WProgram.h. Do next four in this sequence Right click the project->index->Search for unresolved includes. Right click the project->index->Freshen all Files. Right click the project->index->Update with modified files. Right click the project->index->Rebuild. 
+11
source

Doing what the plugin often sets here is correct, but not enough, at least if you are running Windows.

You will need to add the path to Project-> Properties-> C / C ++ General-> Path and symbols

  • Under the “includes” tab, click “Add”
  • Select the "add to all configurations" flag
  • Enter this path: path to Arduino IDE installation directory\hardware\tools\avr\avr\include

In my case, the path is C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include

After this eclipse, it will ask you if you want to rebuild the index, and then all standard characters will be resolved correctly.

+2
source

do “Arduino Eclipse Extensions” in Help-> Check for Updates

0
source

Source: https://habr.com/ru/post/917748/


All Articles