[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] Build Error?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] Build Error? |
Date: |
Wed, 22 Jun 2011 16:37:42 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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 <address@hidden>
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. ;-)