kopanitsa / web3-arduino

an Arduino (or ESP32) library to use web3 on Ethereum platform.
MIT License
106 stars 46 forks source link

Fatal Error: string: No such file or directory #4

Open mdogan93 opened 6 years ago

mdogan93 commented 6 years ago

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

              ^

compilation terminated. exit status 1`

publu commented 6 years ago

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.