PROGMEM Demo on Arduino.cc Will not Compile?

Is there something wrong with the configuration of my machine(s) such that the demo of PROGMEM from the below page does not compile on Ubuntu or on a Raspberry Pi running Debian (but does compile on a MAC)?

The error that I am getting is that prog_char does not define a type.

Thanks for any help,
Wisar

It compiles for me using IDE 1.0.4
I copied it from the link you gave. It is 58 lines long including the block comments at the top. Are you sure that you copied all of it ?

I assume that you do have the pgmspace.h file. Which version of the IDE are you using ?

HeliBob:

I am running IDE 1.0.1 on all three machines that I have tried including the one that works (with all 58 lines of the sketch!). This appears to be the latest version packaged in apt-get for Ubuntu and Debian as the installs are new.

I do seem to have the pgmspace.h file:

-rw-r--r-- 1 root root 41927 May 23 2012 /usr/lib/avr/include/avr/pgmspace.h

Assuming that is the right place for it!

Wisar

Sorry but I can offer no help about where the file should be on a Linux system but others will be able to help I am sure.