Linker error: undefined reference to `va_copy'


Linker throws error undefined reference to `va_copy’ when trying to link lv_printf.o .
What is va_copy? Do I need lv_printf, what is it used for?

What MCU/Processor/Board and compiler are you using?

custom board using NXP LPC54113J256
gnu11 gcc

What have you tried so far?

I have tried disabling lv_printf in lv_conf.h by #define LV_SPRINTF_CUSTOM 1 as recommended in an older post.

Switched from redlib(nohost-nf) to newlib(none) which fixed the problem.

1 Like