Wiz-IO / platform-quectel

Quectel development platform for PlatformIO
98 stars 42 forks source link

OpenCPU \arm-none-eabi\lib\thumb\libc.a undefined reference errors #32

Closed umeshwalkar closed 4 years ago

umeshwalkar commented 4 years ago

Hi again,

c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-sbrkr.o): In function_sbrk_r': sbrkr.c:(.text._sbrk_r+0xc): undefined reference to _sbrk' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-writer.o): In function_write_r': writer.c:(.text._write_r+0x10): undefined reference to _write' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-closer.o): In function_close_r': closer.c:(.text._close_r+0xc): undefined reference to _close' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-fstatr.o): In function_fstat_r': fstatr.c:(.text._fstat_r+0xe): undefined reference to _fstat' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-isattyr.o): In function_isatty_r': isattyr.c:(.text._isatty_r+0xc): undefined reference to _isatty' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-lseekr.o): In function_lseek_r': lseekr.c:(.text._lseek_r+0x10): undefined reference to _lseek' c:/users/umesh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb\libc.a(lib_a-readr.o): In function_read_r': readr.c:(.text._read_r+0x10): undefined reference to `_read'

`

can someone please guide me how to rectify it.

Thanks Umesh

umeshwalkar commented 4 years ago

solved. I was using sprintf in some debug code. replaced by Quectel API.

Thanks.