[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] only initialized variables can be placed into program mem
From: |
Rick Mann |
Subject: |
Re: [avr-chat] only initialized variables can be placed into program memory area |
Date: |
Sun, 1 Jul 2012 20:49:03 -0700 |
Also: this is a .cpp file. I found some of the AVR Freaks thread. They say it's
a known problem in GCC C++. Sigh.
--
Rick
On Jul 1, 2012, at 20:45 , Rick Mann wrote:
> Hi. I'm trying to use pgmspace with avr-gcc 4.3.3. The archive had this
> question posted (in reference to WinAVR), and some discussion about a thread
> in AVR Freaks, but AVR Freak's search isn't very good (I've never liked
> phpBBS).
>
> Can anyone tell me if I can safely ignore that warning, and if there's a
> newer version of GCC that doesn't emit it?
>
> I modified a line like
>
> printf("foo\n");
>
> to
> printf_P(PSTR("foo\n"));
>
> and get that warning.
>
> Thanks,
> Rick
>
>
> _______________________________________________
> AVR-chat mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avr-chat