Jp3141
Well-known member
This minimal example won't compile on Win7 or WinXP, but works on my Mac:
This is the error:
c:/projects/arduino-1.0.2/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-closer.o): In function `_close_r':
closer.c.text+0x12): undefined reference to `_close'
c:/projects/arduino-1.0.2/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c.text+0x16): undefined reference to `_lseek'
collect2: ld returned 1 exit status
I had posted this in the other forum, but got little response. #include'ing the stdio.h and/or stdlib.h doesn't make any difference. Anyone have a solution ?
Code:
int i;
void setup() {}
void loop() {sscanf("0", "%d", &i);}
This is the error:
c:/projects/arduino-1.0.2/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-closer.o): In function `_close_r':
closer.c.text+0x12): undefined reference to `_close'
c:/projects/arduino-1.0.2/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c.text+0x16): undefined reference to `_lseek'
collect2: ld returned 1 exit status
I had posted this in the other forum, but got little response. #include'ing the stdio.h and/or stdlib.h doesn't make any difference. Anyone have a solution ?