2

I am trying to compile the Hello World Tutorial, using the following command:

eosiocpp -o hello.wast hello.cpp

However, this does not work, giving the error:

hello.cpp:1:10: fatal error: 'eosiolib/eosio.hpp' file not found
#include <eosiolib/eosio.hpp>

There were suggestions in the Git Issue Tracker that this could be fixed by running:

sudo make install

in the eos/build directory, but I tried this and it didn't work for me.

Does anyone know what is wrong or how to fix it?

3
  • I found a temporary solution that pushes the problem along to a different point. If you make a symbolic link to the eos/contracts/eoslib directory in the folder where you are trying to use eosiocpp, then you can get further with the compilation. Leading to the new problem of the stdint.h header not being found. Will post more updates as I make further progress. Commented Jul 16, 2018 at 5:36
  • 1
    my suggestion would be to erase the eos/build, run eosio_build.sh again, go into the new eos/build folder and run sudo make install Commented Jul 16, 2018 at 11:35
  • I have this same issue but on OSX with CDT v1.6.1 with the Brew install
    – ekkis
    Commented Jun 18, 2019 at 3:25

2 Answers 2

1

I have solved my own problem.

This seems to be a bug in the build script for EOS (see Github Issue 4690) that isn't fixed for all platforms.

I was running EOS on Ubuntu 18.04. Have now switched down to 16.04 and everything works fine.

2
1

0 down vote

As a workaround, revert locally the commit which introduced a regression, then build and install again:

cd $HOME/eos
git revert -n 67393d7
./eosio_build.sh
cd build
sudo make install

eosiocpp should work now fine.

Full details within:

https://github.com/EOSIO/eos/issues/5133

3
  • 1
    I do the same for unbuntu 16.04 when i compile my file i got the error /usr/local/eosio/include/eosiolib/symbol.hpp:2:10: fatal error: 'eosiolib/core_symbol.hpp' file not found #include <eosiolib/core_symbol.hpp> it seems this time this found asset.hpp but not able to find core_symbol.hpp can you please suggest me what am i doing wrong here Commented Aug 20, 2018 at 12:24
  • fetch the latest code, then ./eosio_build.sh sudo ./eosio_install.sh
    – Lazaridis
    Commented Aug 21, 2018 at 13:18
  • see github.com/EOSIO/eos/issues/5419#issuecomment-416004089
    – Lazaridis
    Commented Aug 26, 2018 at 0:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.