I'm newby on Arduino cross-plateform and I have a problem of compilation.
I would compile MMC librairy available on link is on following message (sorry for the link but I can not post link in my first message).
I have a Duemilanove Arduino and microSD module and I use Arduino - 0012 Alpha development interface.
I have an AMD-64 PC on Ubuntu and I obtain about those errors when I want to compile :
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:48: error: 'byte' does not name a type
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:49: error: 'byte' does not name a type
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:50: error: 'byte' does not name a type
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:125: error: 'byte' does not name a type
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:140: error: 'byte' does not name a type
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:157: error: 'byte' does not name a type
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:169: error: expected ',' or '...' before 'command'
C:\DOCUME~1\...\LOCALS~1\Temp\build62924.tmp\/mmc.h:169: error: ISO C++ forbids declaration of 'uint8_t' with no type
In function 'void loop()':
This is the result of compilation on my office PC (Core 2 Duo, Windows XP) and I obtain about the same errors on my personnal PC on Ubuntu.
A friend compile without problems on Arduino - 0011 Alpha but this software version does not support AMD-64 architecture.
The code compile on my office PC on Windows and on my PC on Ubuntu-64 but I don't check it because I don't receive my microSD reader and file must be created on the begining of SD card to use this librairy.
WPprogram.h includes wiring.h which is where the arduino typedef for byte is found. Note that including wiring.h directly causes problems in version 0012. Did you try to include WProgram.h ?
I had this same problem with a library I'm writing. (A reference to the byte type in the library header generates a compilation error.) The Morse tutorial example is out of date and talks about #including "WConstants.h" in your header. But as noted by mikalhart substituting #include <WProgram.h> works like a charm. Thanks for the solution.