Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Warffle opened this issue Mar 5, 2024 · 0 comments
Open

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

Warffle opened this issue Mar 5, 2024 · 0 comments

Comments

@Warffle
Copy link

Warffle commented Mar 5, 2024

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_sensor_bme280.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:

  • reinstalled the IDE
  • reinstalled the library
  • tested in two computers
  • downgraded to Arduino IDE 2.2.1
  • changed cstdint to stdint.h, the error remains but for cstring instead
  • compiled a different code with Arduino_LoRaWAN_network.h (simple_sensor_bme280.ino)
  • tried compiling with a different board (Arduino UNO)

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant