6

私はEclipseとArduinoライブラリをセットアップしようとしています。この URL にある指示に従いました。 http://arduino.cc/playground/Code/Eclipse

私が抱えている問題は、プロジェクトがシリアルを解決できないことです。なぜこれが考えられるのか誰にも分かりますか?私は Arduino 1.0 を使用していますが、説明は 1.0 より前のバージョン用に書かれています。

4

3 に答える 3

13
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.
于 2012-06-12T01:46:43.423 に答える
2

ここのプラグイン FAQ に書かれていることを実行することは正しいですが、十分ではありません。少なくとも Windows で作業している場合はそうではありません。

Project->Properties->C/C++ General->Path and symbolsへのパスを追加する必要があります。

  • タブ「含む」の下で、追加をクリックします
  • 「すべての構成に追加」フラグを選択します
  • 次のパスを入力します。path to Arduino IDE installation directory\hardware\tools\avr\avr\include

私の場合、パスはC:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include

このEclipseの後、インデックスを再構築するかどうかを尋ねられ、すべての標準シンボルが正しく解決されます

于 2014-11-10T22:35:15.687 に答える