编译合约时提示找不到'graphenelib/contract.hpp'



  • 下载并编译了gxb-core,用gxx编译hello world例子时,提示这个错误:

    happy@ubuntu:~/gxb-core/build/tools$ ./gxx -o helloworld/helloworld.wast helloworld/helloworld.cpp
    helloworld/helloworld.cpp:1:10: fatal error: 'graphenelib/contract.hpp' file not found
    #include <graphenelib/contract.hpp>
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.



  • 已解决。需要先make install来安装gxb-core,得到正确的目录结构才行。


Log in to reply
 

Looks like your connection to GXChain Community was lost, please wait while we try to reconnect.