VSChina / ESP32_AzureIoT_Arduino

The library for ESP32 Azure IoT for Arduino
MIT License
37 stars 43 forks source link

Can't use Esp32MQTTClient_Init() #23

Open 96kaitlinburke opened 3 years ago

96kaitlinburke commented 3 years ago

When I try to run Esp32MQTTClient_Init(), I get the following error message:

/Users/xxxxxx/Documents/Arduino/libraries/ESP32_AzureIoT_Arduino/src/az_iot/c-utility/src/constbuffer.c:143: undefined reference to \'__sync_sub_and_fetch_4\' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board ESP32S2 Dev Module.

From googling this error, this issue seems to come up when compiling for ARM, but there's no reason it should be doing for an ESP32. What's happening here?