i try to use the stdio.h but i get allays compiling errors.
example code:
#include <stdio.h>
void setup() {
char wBuf[10];
uint8_t wTest = 2;
sprintf(wBuf, "TEST: %d", 2);
printf("%s\n", wBuf);
}
void loop() {
}
error:
C:/arduino-nightly/hardware/tools/esp8266/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Temp\build7857054617614130097.tmp/sketch_mar29a.cpp.elf section `.text' will not fit in region `iram1_0_seg'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-mallocr.o):(.literal+0x2c): undefined reference to `_sbrk_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-mallocr.o): In function `malloc_extend_top':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdlib/../../../../../newlib/libc/stdlib/mallocr.c:2165: undefined reference to `_sbrk_r'
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdlib/../../../../../newlib/libc/stdlib/mallocr.c:2202: undefined reference to `_sbrk_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-freer.o): In function `_malloc_trim_r':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdlib/../../../../../newlib/libc/stdlib/mallocr.c:3325: undefined reference to `_sbrk_r'
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdlib/../../../../../newlib/libc/stdlib/mallocr.c:3332: undefined reference to `_sbrk_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-freer.o):d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdlib/../../../../../newlib/libc/stdlib/mallocr.c:3340: more undefined references to `_sbrk_r' follow
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-makebuf.o):(.literal+0x8): undefined reference to `_fstat_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-makebuf.o): In function `__smakebuf_r':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdio/../../../../../newlib/libc/stdio/makebuf.c:59: undefined reference to `_fstat_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o):(.literal+0x4): undefined reference to `_read_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o):(.literal+0x8): undefined reference to `_lseek_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o):(.literal+0xc): undefined reference to `_write_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o):(.literal+0x10): undefined reference to `_close_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o): In function `__sread':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdio/../../../../../newlib/libc/stdio/stdio.c:48: undefined reference to `_read_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o): In function `__swrite':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdio/../../../../../newlib/libc/stdio/stdio.c:89: undefined reference to `_lseek_r'
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdio/../../../../../newlib/libc/stdio/stdio.c:97: undefined reference to `_write_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o): In function `__sseek':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdio/../../../../../newlib/libc/stdio/stdio.c:117: undefined reference to `_lseek_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(lib_a-stdio.o): In function `__sclose':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\stdio/../../../../../newlib/libc/stdio/stdio.c:135: undefined reference to `_close_r'
C:/arduino-nightly/hardware/tools/esp8266/sdk//lib\libc.a(isatty.o): In function `_isatty_r':
d:\Neo\Project\ESP8266\DevKit\build\compiler\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libc\sys\xtensa/../../../../../../newlib/libc/sys/xtensa/isatty.c:13: undefined reference to `_fstat_r'
collect2.exe: error: ld returned 1 exit status
is there a way to use sprintf and printf in the ESP8266 Arduino IDE?