avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] String array in ROM gives error in spite of following


From: Bob Paddock
Subject: Re: [avr-gcc-list] String array in ROM gives error in spite of following example code.
Date: Thu, 12 Jun 2014 08:46:07 -0400

 #define FLASH /* Empty, used for IAR compiler.  Define PROGMEM as
empty to use GCC */

static char const FLASH string000[] PROGMEM = "NO_MSG"; /* 000/0x00 */
...

static PGM_P const string_pointers[] PROGMEM = {
    string000, /* 0x00 */
...
};

That works without out warnings for C.  There was a long standing bug
that you may be running into if you are compiling as C++.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]