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

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

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

Reply via email to