micro-bitcoin / uBitcoin

Bitcoin library for microcontrollers. Supports Arduino, mbed, bare metal.
https://micro-bitcoin.github.io/
MIT License
168 stars 33 forks source link

uBitcoin/src/BaseClasses.cpp:3:10: fatal error: cstdlib: No such file or directory #30

Closed FeatureSpitter closed 1 year ago

FeatureSpitter commented 1 year ago

I installed this library using the visual studio code Arduino extension (by Microsoft). And I am getting this error when compiling:

image

[Starting] Verifying sketch 'arduino-wallet.ino'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
/home/nemewsys/Arduino/libraries/uBitcoin/src/BaseClasses.cpp:3:10: fatal error: cstdlib: No such file or directory
 #include <cstdlib>
          ^~~~~~~~~
compilation terminated.

Error during build: exit status 1

All the other libs seem to work fine, this one is the exception.

Do I need to make anything additional to have this working with VS Code?

Thanks!

FeatureSpitter commented 1 year ago

@stepansnigirev

FeatureSpitter commented 1 year ago

I get the same error in the IDE it seems:

image

I am using the latest version of the IDE, the latest version of uBitcoin and Ubuntu 22:

Linux nemewsys-82JU 6.2.0-34-generic #34-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 4 13:06:55 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

tinygiant commented 10 months ago

How was this resolved? I'm seeing the same thing on a windows 10 pc.