web3-arduino
web3-arduino copied to clipboard
Fatal Error: string: No such file or directory
I zipped the cloned repository and include it from Arduino IDE. When I tried to include library on Arduino IDE and tried some example to verify the code. It does not compile with the error below:
In file included from /home/narya/Arduino/libraries/web3-arduino/examples/eth_call/eth_call.ino:2:0:
/home/narya/Arduino/libraries/web3-arduino/src/Web3.h:11:18: fatal error: string: No such file or directory
#include <string>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
I have downloaded STL library from the following link but another problem exists. http://andybrown.me.uk/downloads/ I also included it here but I do not think that library is ready-to-use when downloaded.
/home/narya/Arduino/libraries/web3-arduino/src/Util.cpp:7:18: fatal error: cstdio: No such file or directory #include <cstdio> ^ compilation terminated. exit status 1
Make sure to install the board following these instructions: https://github.com/espressif/arduino-esp32
That should fix that issue. Make sure you compile to the ESP32 board.