I've found lots of info for Dawn 3.0, but there's a note in the 1.1.0 release notes that acknowledges that the EOS Developer Portal tutorials (token, exchange, helloWorld) don't work and need updating, but that doesn't help me to learn how to write EOS Contracts now, and I've been unable to find current info that works.
I've tried both the docker approach (recommended in the tutorial) as well as the build-the-whole-thing-from-source approach. The docker approach required a few things to be tweaked that I did figure out (mainly removing references to the "build" folder), but then both approaches eventually lead to the following error, which I believe is just an include path not being included, but I can't figure out how to include it.
After compiling eosio source, running all tests successfully, and then running sudo make install
, when I try to compile the hello
sample contract,
$ cd <root of cloned github repo>/contracts/hello
$ /usr/local/eosio/bin/eosiocpp -o hello.wast hello.cpp
I get the following
hello.cpp:1:10: fatal error: 'eosiolib/eosio.hpp' file not found
#include <eosiolib/eosio.hpp>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
I have monkeyed around every way I can think of with include paths and path references, but I can't come up with a way to get this to work that isn't contract specific, ie. I don't want to mod this so that paths are all customized to this location...
Any ideas?
Bonus question: Can anyone provide a simple way to do this compilation using the suggested docker container-ized nodeos/keosd solution referenced in the tutorials?
sudo make install
inside build folder?sudo make install
as it says in my post (and I did that in thebuild
folder). That doesn't solve the problem.