Skip to content

Error variable 'colors' with dynamic initialization put into program memory area #24

Open
@djmitho

Description

@djmitho

On the example U8GLib.ino is not possible to compile.
Error on line 142: const colorDef<uint8_t> colors[] MEMMODE={

full error of compiler is:

src/menuIO/U8GLibOut.h: In function 'global constructors keyed to 65535_0_U8GLib.ino.cpp.o':
U8GLib:142:25: error: variable 'colors' with dynamic initialization put into program memory area
const colorDef<uint8_t> colors[] MEMMODE={
^
lto-wrapper.exe: fatal error: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
variable 'colors' with dynamic initialization put into program memory area

Arduino version 1.8.13
Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions