SD Library - Eclipse Compiler Fehlermeldung Ursache?

Hallo,

ich bekomme folgende Fehlermeldungen, wenn ich das SD Beispiel aus der Bibliothek versuche in Eclipse zu "hämmern".
Ich benutze das "baeyens" Pluging für Eclipse (http://www.baeyens.it/eclipse/UsethePlugin.html).

Description	Resource	Path	Location	Type
'curCluster_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 34	C/C++ Problem
'curCluster_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 38	C/C++ Problem
'curCluster_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 50	C/C++ Problem
'dirFile' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 129	C/C++ Problem
'F_FILE_DIR_DIRTY' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 39	C/C++ Problem
'FAT_FILE_TYPE_CLOSED' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 76	C/C++ Problem
'fileSize_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 55	C/C++ Problem
'firstCluster_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 37	C/C++ Problem
'firstCluster_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 93	C/C++ Problem
'firstCluster_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 95	C/C++ Problem
'flags_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 39	C/C++ Problem
'SdFile' has not been declared	SdFile.cpp	/Test_SD/SD/utility	line 25	C/C++ Problem
'SdFile' has not been declared	SdFile.cpp	/Test_SD/SD/utility	line 33	C/C++ Problem
'SdFile' has not been declared	SdFile.cpp	/Test_SD/SD/utility	line 46	C/C++ Problem
'SdFile' has not been declared	SdFile.cpp	/Test_SD/SD/utility	line 74	C/C++ Problem
'SdFile' has not been declared	SdFile.cpp	/Test_SD/SD/utility	line 91	C/C++ Problem
'SdFile' has not been declared	SdFile.cpp	/Test_SD/SD/utility	line 129	C/C++ Problem
'SdFile' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 129	C/C++ Problem
'SdVolume' has not been declared	SdFile.cpp	/Test_SD/SD/utility	line 52	C/C++ Problem
'sync' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 75	C/C++ Problem
'type_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 76	C/C++ Problem
'vol_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 34	C/C++ Problem
'vol_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 50	C/C++ Problem
'vol_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 97	C/C++ Problem
'vol_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 102	C/C++ Problem
'vol_' was not declared in this scope	SdFile.cpp	/Test_SD/SD/utility	line 103	C/C++ Problem
expected ',' or ';' before '{' token	SdFile.cpp	/Test_SD/SD/utility	line 130	C/C++ Problem
expected constructor, destructor, or type conversion before '*' token	SdFile.cpp	/Test_SD/SD/utility	line 61	C/C++ Problem
expected primary-expression before 'const'	SdFile.cpp	/Test_SD/SD/utility	line 130	C/C++ Problem
expected primary-expression before 'size'	SdFile.cpp	/Test_SD/SD/utility	line 130	C/C++ Problem
initializer expression list treated as compound expression	SdFile.cpp	/Test_SD/SD/utility	line 130	C/C++ Problem
make: *** [SD/utility/SdFile.o] Error 1	Test_SD		 	C/C++ Problem
SdFat.h: No such file or directory	SdFile.cpp	/Test_SD/SD/utility	line 20	C/C++ Problem

HIer das Beispiel, das die Probleme verursacht:

 //Do not remove the include below
#include "Test_SD.h"


/*
 * Sketch to compare size of Arduino SD library with SdFat V2.
 * See SdFatSize.pde for SdFat sketch.
 */
#include <SPI.h>
#include <SD.h>

File file;
//------------------------------------------------------------------------------
void setup() {
  Serial.begin(9600);
  while (!Serial) {}  // wait for Leonardo

  if (!SD.begin()) {
    Serial.println("begin failed");
    return;
  }
  file = SD.open("TEST_SD.TXT", FILE_WRITE);

  file.println("Hello");

  file.close();
  Serial.println("Done");
}
//------------------------------------------------------------------------------
void loop() {}

Irgendjemand eine Idee wo die Ursache liegt?

Hallo,

wirklich niemand der das mal ausprobiert hat bzw. was zur Problemfindung weiß?

Mit der Arduino IDE funktioniert der Sketch?

Beim der Arduino IDE bedeutet:
SdFat.h: No such file or directory
daß die Bibliothek nicht gefunden wurde.

expected ',' or ';' before '{' token weißt auf ein fehlendes Semikolon oder eine geschwungene Klammer zuviel hin.

Sicher ist es fehlt das "//" bei "Do not remove the include below"

Grüße Uwe

JA, ist ja ein Arduino Beispiel und mit der Arduino 1.0.3 lässt sich das ohne Probleme kompilieren.
Das "//" war ein cut and paste Fehler.

Ich habe den offizielle SD-Library Ordner in eclipse eingebunden, der ja in der Arduino IDE problemlos spielt.

Was kann den Ursache für die vielen "declared" Probleme sein?
Irgendwie scheint das Problem an der offiziellen SdFile.cpp zu liegen.

Als Warnung komm auch "SdFat.h: No such file or directory", obwohl diese wie SdFile.cpp auch im utility Ordner liegt!?

Gruß
Snoops

Als Warnung komm auch "SdFat.h: No such file or directory", obwohl diese wie SdFile.cpp auch im utility Ordner liegt!?

Bist Du sicher daß das der richtige Ort ist? Wo sind die anderen Bibliotheken?
Grüße Uwe

Eigentlich schon liegt alles im selben Verzeichnis, wo bspw. auch die SPI-Lib liegt.
Habe auch schon mehrmals versucht die SD-Lib neu einzubinden aber das bringt auch keine Abhilfe...
Eclipse Ansicht siehe Anhang...

Gruß
Snoops

Mittlerweile habe ich den Fehler gefunden. In der Library fehlt der Verweis, das die Files in utility Ordner liegen dh. man muss "/utility" bsw. #include <utility/SdFatUtil.h>
bei den Problemfiles in der Library dazuschreiben und schon spielts... :0