I’ve been unable to create a library. I tried the ‘Morse’ example in the tutorial. I cut-and-pasted the text in the tutorial into the appropriate .h file, .cpp file, and .pde. I stored the .h and .cpp in the \hardware\libraries folder in a folder called Morse, just like in the tutorial. I made sure every time I compiled a sketch to remove the .o file from the Morse folder.
When I try to compile, I always get the following (I’ve tried Arduino release 13 and 14 under Windows XP):
In file included from C:\Program Files\arduino-0014\hardware\cores\arduino/WProgram.h:4,
c:/program files/arduino-0014/hardware/tools/avr/lib/gcc/…/…/avr/include/stdlib.h:111: error: expected unqualified-id before ‘int’
c:/program files/arduino-0014/hardware/tools/avr/lib/gcc/…/…/avr/include/stdlib.h:111: error: expected
)' before 'int'</mark> <mark>c:/program files/arduino-0014/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected )’ before ‘int’
In file included from C:\Program Files\arduino-0014\hardware\cores\arduino/WProgram.h:6,
What am I doing wrong?