ARM_GCC_Support/ewl/EWL_C/src/stdio/vsnprintf.c undefined reference to `__pformatter'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ARM_GCC_Support/ewl/EWL_C/src/stdio/vsnprintf.c undefined reference to `__pformatter'

1,503 Views
shark
Contributor I

Currently I was porting my code from MQX 4.1 to MQX 4.2. I got this error "ARM_GCC_Support/ewl/EWL_C/src/stdio/vsnprintf.c undefined reference to `__pformatter'" when I compile my code. What is the problem

0 Kudos
3 Replies

578 Views
ironsean
Contributor V

I am experiencing the same thing, except it presents as this:

D:/Freescale/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\libc.a(printf.o): In function `printf':

ARM_GCC_Support/ewl/EWL_C/src/stdio/printf.c:44: undefined reference to `__pformatter'

mingw32-make: *** [httpsrv_frdmk64f.elf] Error 1

It seems like the libc library is taking precedence over the MQX printf function and not playing nicely at the linker stage.

0 Kudos

578 Views
ironsean
Contributor V

Looking at their example project, including this headers anywhere you want to print seems to work:

#include <ctype.h>

#include <stdlib.h>

#if MQX_USE_IO_OLD

#include <fio.h>

#else

#include <stdio.h>

#endif

0 Kudos

578 Views
marceli1
Contributor III

It fix when change Librarian back to ewl, not use ewl-noio. Fixed as well sprintf.

0 Kudos