It would be very helpful if the author of the site modified the tutorial on the library example for morse. This was a very well written and helpful tutorial right up to the point when it will not compile in the program.
Since this is such an important building block in the arsenal of Arduino, it would be a shame to have people stumble here.
The fix posted here does allow the program to compile and work fine.
I had the same errors listed at the top of this post when I added the LedControl library. I needed to make the same modifications to LedControl.cpp and LedControl.h to make them compile correctly.
I'm having even worse errors with the FrequencyTimer2 library (see http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1239820770
), and the changes listed above don't work at all.
But I wonder how many more libraries I will download that have the WConstants.h and WPrograms.h problem? Is this because things got changed in 0015? Is it because of my Duemilanove? I'm pretty new at this, not a C/C++ guru by any means, and it's kinda frustrating....