>-----Original Message-----
>From: Joerg Wunsch [mailto:[email protected]]
>Sent: Wednesday, June 22, 2011 8:08 PM
>To: [email protected]
>Cc: Boyapati, Anitha
>Subject: Re: [avr-libc-dev] Build Error?
>
>As Boyapati, Anitha wrote:
>
>> ../../../libc/stdio/vfscanf.c:783:27: error: variable '__c' must be const
>in order to be put into read-only section by means of
>'__attribute__((progmem))'
>
>The variable __c is the internal variable used inside the PSTR macro.
>This variable must be declared "const", which has recently been
>committed to the tree:
>
>r2239 | arcanum | 2011-05-09 19:11:12 +0200 (Mon, 09 May 2011) | 6 lines
>
>2011-05-09  Eric B. Weddington  <[email protected]>
>
>        Fix for bug #32988.
>        * include/avr/pgmspace.h: Add const keyword to PSTR definition.
>        * NEWS: Add to fixed bug list.
>
>Are you perchance accidentally using an outdated version of the
><avr/pgmspace.h> header file (e.g. an installed old version rather
>than the in-tree new one)?
>

Hmm, I am using 1.7.1 release version. Let me see what the differences are..

Anitha

_______________________________________________
AVR-libc-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to