I am newbie to EOS development. I am constantly getting the error:

fatal error: 'eosiolib/eosio.hpp' file not found

Can someone help? Here is my code:

#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>

class nametest : public eosio::contract{
    using contract::contract;

        nametest(account_name self):contract(self){}
        void test(account_name sender){
            eosio::print("Hello from", sender);

EOSIO_ABI(nametest, (test));

My OS is Mac OS and toolchain is EOS CDT 1.4.1

  • You should at least specify the environment (OS and flavor) and toolchain (eosio.cdt or older) that you are trying to use. – Gassa Nov 17 '18 at 10:14
  • If the question is not going to be updated with essential details, it would be right to close it as not constructive. – Gassa Nov 18 '18 at 20:38

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.