arduino-libraries / Arduino_JSON

Official JSON Library for Arduino
GNU Lesser General Public License v2.1
151 stars 60 forks source link

undefined reference to `sscanf' #47

Open Chokhonelidze opened 1 year ago

Chokhonelidze commented 1 year ago
/tmp/arduino-sketch-9112C3771E1D54AB13D36005A1B0E5E5/libraries/Arduino_JSON/cjson/cJSON.c.o:(.text.print_value+0x20): undefined reference to `sscanf'
/tmp/arduino-sketch-9112C3771E1D54AB13D36005A1B0E5E5/libraries/Arduino_JSON/cjson/cJSON.c.o: In function `print_value':
/home/george/Arduino/libraries/Arduino_JSON/src/cjson/cJSON.c:3127: undefined reference to `sscanf'
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1
aentinger commented 1 year ago

For which platform/board did you compile when this error occured?

Chokhonelidze commented 1 year ago

Hi I am using NodeMCU ESP-12E board and Arduino IDE 2.0.4-nightly-20221210 I was using arduino-PR-beta1.9-BUILD-116 before but ESP8266WiFi just stopped connecting to wifi. I am rebuilding my project for Arduino IDE 2.0.4-nightly-20221210 but now Arduino_JSON is not working :( I tried everything none of the libraries are working for this IDE.

aentinger commented 1 year ago

This may be a very special NodeMCU problem, see here. I'd go and ask for help over there.