I am having an issue. I can not get any of the sample apps to compile. The compiler complains of an error on line 40 of ArduinoStream.h: expected ')' before '&' token. I took a look and the reference parameter seemed to be declared correctly.
I tried several of the example files and each one gave me the same error. I'll try the SD classes without the stream IO and see if I have better luck.
I ran into the same problem today and found the solution to have nothing to do with Sanguino at all.
And why should it.
I am using a Diecemilia and got the same error.
The example code on the other hand compiled fine.
The solution was, not to use the Sketch->Import Library->(contributed)SdFat function of the IDE.
Wehn doing so, the IDE places #include statements for all headers in the libraries folder into the source of the sketch.
the #include <ArduinoStream.h> is at the top of the list in this case.
Simply removing all the #includes and adding
manually solved the problem. (for my sketch, anyway, I am using only those).
It puzzles me that you got the error when compiling the sample code, because that is only including the necessary headers, it seems.
And btw: Thanks to William for the excellent work.