eos icon indicating copy to clipboard operation
eos copied to clipboard

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

Open li3365 opened this issue 8 years ago • 4 comments

I'm using Mac book air,docker Version 18.03.1-ce-mac65 (24312). I pulled the latest eosio/eos-dev docker images. when I try to compile the hello contract , command line: root@2f9185d5e091:/# eosiocpp -o hello.wast hello.cpp hello.cpp:1:10: fatal error: 'eosiolib/eosio.hpp' file not found #include <eosiolib/eosio.hpp> ^~~~~~~~~~~~~~~~~~~~ 1 error generated.

I searched and found that there is no such file eosio.hpp exist in the image. How to resolve this bug?any information will be grateful .

li3365 avatar Aug 08 '18 06:08 li3365

i got the same error

vchengsong avatar Aug 08 '18 07:08 vchengsong

I followed instruction: git revert -n 67393d7 then I copied files from source : cp /eos/contracts/eosiolib/* . eosiocpp -o hello.wast hello.cpp new error appeared: ./eosiolib/types.h:7:10: fatal error: 'stdint.h' file not found

and stdint.h cannot be found anywere.

li3365 avatar Aug 10 '18 05:08 li3365

becauseof my network envirenment(China) ,I can only use docker image. seems no other better solution,waiting for docker updates.

li3365 avatar Aug 12 '18 05:08 li3365

I have the same issue in the eosio/eos-dev:v.1.2.5

/opt/eosio/include doesn't contain eoslib, something wrong with the cmake-generated install script for ninja?

dzianisv avatar Sep 18 '18 20:09 dzianisv