Pages: [1]   Go Down
Author Topic: PROGMEM Demo on Arduino.cc Will not Compile?  (Read 228 times)
0 Members and 1 Guest are viewing this topic.
Berks, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Wisar but not Wiser
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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)?

http://www.arduino.cc/en/Reference/PROGMEM

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

Thanks for any help,
Wisar
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 89
Posts: 3466
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Berks, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Wisar but not Wiser
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: May 15, 2013, 04:14:38 am by Wisar » Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 89
Posts: 3466
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Pages: [1]   Go Up
Jump to: