mcci-catena / arduino-lorawan

User-friendly library for using arduino-lmic with The Things Network and other LoRaWAN® networks
MIT License
274 stars 54 forks source link

fatal error: cstdint: No such file or directory #228

Open Warffle opened 4 months ago

Warffle commented 4 months ago

Good day!

I am new to LoraWAN and recently tried using this library with the Adafruit Feather 32u4 with RFM95W to send pressure and temperature data using a S2Go DPS310. When compiling the code, I get the following error:

In file included from c:\Users\XXX\Documents\Arduino\libraries\MCCI_Arduino_LoRaWAN_Library\src/Arduino_LoRaWAN_network.h:19:0,
                 from C:\Users\matth\Documents\Arduino\v2_feather_rfm95w\v2_feather_rfm95w.ino:20:
c:\Users\XXX\Documents\Arduino\libraries\MCCI_Arduino_LoRaWAN_Library\src/Arduino_LoRaWAN.h:19:10: fatal error: cstdint: No such file or directory
 #include <cstdint>
          ^~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

I tried searching for solutions to this issue, but I could not find one that worked. I also tried compiling the _simple_sensorbme280.ino example, and the same error appears.

Environment and Code: My code: https://pastebin.com/pu7z3qJM (still a work in progress) Platform: Arduino IDE 2.3.2 Board: Adafruit Feather 32u4 with RFM95W Windows 11

Here are the following potential solutions I have tried:

I have also found this issue for another library, it seems like it might still be an Arduino IDE issue.

Is there may be a way to bypass this issue? I am not sure how to proceed anymore. Any help would be greatly appreciated!