Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

'stdint.h' file not found when running the example of smart contract “Hello World” #1718

Closed
@Duffyxx

Description

@Duffyxx

I follow the tutorials to run the example of "Hellow World",when I run this command:

./eosiocpp -o hello.wast hello.cpp

get the error:

In file included from hello.cpp:5:
In file included from ./hello.hpp:5:
In file included from /usr/local/include/eosiolib/eosio.hpp:6:
In file included from /usr/local/include/eosiolib/types.hpp:6:
/usr/local/include/eosiolib/types.h:7:10: fatal error: 'stdint.h' file not found
#include <stdint.h>
^~~~~~~~~~
1 error generated.

My system is 10.13.1 (17B1003).
I have checked this file in clang and g++, stdint.h can be found, I don't know how to do with it.
Can somebody help me?
Thanks.

Activity

Duffyxx

Duffyxx commented on Mar 21, 2018

@Duffyxx
Author

I changed the file /usr/local/include/eosiolib/types.h
#include<stdint.h> to #include</usr/include/stdint.h>
is ok ,and get the error:
'sys/cdefs.h' file not found
so, I have to change "sys/cdefs.h" to "/usr/include/sys/cdefs.h".
So, why eoscpp can't find files in /usr/include/?

yanxi123-com

yanxi123-com commented on Apr 2, 2018

@yanxi123-com

+1

brain-hu

brain-hu commented on Apr 3, 2018

@brain-hu

+1

brain-hu

brain-hu commented on Apr 3, 2018

@brain-hu

Solved.
cd ~/eos/build
sudo make install
cd ~/eos/contract/currency
eosiocpp -o currency.wast currency.cpp

itsmeprasanjit

itsmeprasanjit commented on May 6, 2018

@itsmeprasanjit

sudo make install is not solving the error in my case :(
usr/local/include/eosiolib/types.h:7:10: fatal error: 'stdint.h' file not found

mylesshie

mylesshie commented on May 9, 2018

@mylesshie

+1

tempest2023

tempest2023 commented on May 14, 2018

@tempest2023

I don't make eos by myself. I think that's why this error happens.
So Is there any way to solve this without making eos?

qs-lll

qs-lll commented on May 17, 2018

@qs-lll

+1

luoxiaohui

luoxiaohui commented on May 23, 2018

@luoxiaohui

+1

sikeeoh

sikeeoh commented on May 26, 2018

@sikeeoh

+1

shalakhin

shalakhin commented on Jun 29, 2018

@shalakhin

+1

yekai1003

yekai1003 commented on Aug 10, 2018

@yekai1003

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @shalakhin@gleehokie@itsmeprasanjit@luoxiaohui@mylesshie

        Issue actions

          'stdint.h' file not found when running the example of smart contract “Hello World” · Issue #1718 · EOSIO/eos