web3-arduino icon indicating copy to clipboard operation
web3-arduino copied to clipboard

Fatal Error: string: No such file or directory

Open mdogan93 opened this issue 6 years ago • 1 comments

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

mdogan93 avatar Mar 29 '18 21:03 mdogan93

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.

publu avatar Apr 05 '18 19:04 publu