Im following along with the getting started guide and I got up to the first contract section in 2.1, I made the hello directory and cd into it, I touched hello.cpp and then opened it in VS Code, once I added the header

#include <eosio/eosio.hpp>

I got the red error squiggle, I do have the c++ extension for vs code installed, the error is

 include errors detected. Please update your includePath eosio/eosio.hpp

2 Answers 2


I installed eosio.cdt with brew. Adding /usr/local/Cellar/eosio.cdt/1.6.3/opt/eosio.cdt/include/** to my includePath variable helped me

For eosio.cdt 1.7.0, the path is: /usr/local/Cellar/eosio.cdt/1.7.0/opt/eosio.cdt/include/eosiolib/core/**


Because eosio-cpp builder is automatically find and include the eosio/eosio.hpp.

So Visual studio don't know where is the eosio folder. You have to check the eosio.cdt version. It must be 1.6.x, not 1.5.x version

And If you check the version. you can build the hello.cpp by using the eosio-cpp

eosio-cpp hello.cpp -o hello.wasm --abigen

you can see hello.wasm , hello.abi

  • You are indeed correct I can build it, but the question is really about how to get rid of the error in VS Code, how do i find the eosio folder? I installed it with brew on the mac, and once i do find it how do I tell VS Code where it is?
    – Bill
    Commented Jun 22, 2019 at 16:05
  • eosio folder is located in eosio.cdt folder. the path is /usr/local/eosio.cdt/include
    – T Eom
    Commented Jun 22, 2019 at 23:53
  • No such path on a Mac
    – Bill
    Commented Jun 23, 2019 at 3:17
  • eosio-cpp is running??
    – T Eom
    Commented Jun 23, 2019 at 15:21
  • yes I can run eosio-cpp hello.cpp -o hello.wasm with no problem
    – Bill
    Commented Jun 24, 2019 at 0:45

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.