newlib, sscanf et al

ntfreak:
…ld will by default only do one pass to resolve externals, so if your objects are after libc then you will get unresolved externals…

Aaaaaarrrrrgh! I’d forgotten that Spen. A final -lc on the ld command line fixed it properly. Thank you so much for helping me.

Edit 25 minutes later: But now I have problems if I try to use sprintf:

......newlib_build/arm-elf/newlib/libc/libc.a(sprintf.o): In function `_sprintf_r':
......newlib_sources/newlib/libc/stdio/sprintf.c:346: undefined reference to `_vfprintf_r'

1 step forward, 2 back!

Grateful Bob.