Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can not build with _vsprintf (SDK v14.2)

stdio.h defines vsprintf and _vsprintf, and suggests using _vsprintf if you want to save on code space.  

extern _ARMABI int _vsprintf(char * __restrict /*s*/,
const char * __restrict /*format*/, __va_list /*arg*/) __attribute__((__nonnull__(1,2)));
/*
* is equivalent to vsprintf, but does not support floating-point formats.
* You can use instead of vsprintf to improve code size.
* Returns: as vsprintf.
*/

vsprintf works for me, but _vsprintf won't link:

.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol _vsprintf (referred from main.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
".\_build\nrf52832_xxaa.axf" - 1 Error(s), 0 Warning(s).

What can I do to fix this? 

Thanks!

Related