New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Duffyxx opened this Issue Mar 21, 2018 · 12 comments

Comments

Projects
None yet
@Duffyxx
Copy link

Duffyxx commented Mar 21, 2018

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.

@Duffyxx

This comment has been minimized.

Copy link

Duffyxx commented Mar 21, 2018

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/?

@yanxi-me

This comment has been minimized.

Copy link

yanxi-me commented Apr 2, 2018

+1

1 similar comment
@pokerchain

This comment has been minimized.

Copy link

pokerchain commented Apr 3, 2018

+1

@pokerchain

This comment has been minimized.

Copy link

pokerchain commented Apr 3, 2018

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

@gleehokie gleehokie closed this Apr 9, 2018

@itsmeprasanjit

This comment has been minimized.

Copy link

itsmeprasanjit commented May 6, 2018

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

This comment has been minimized.

Copy link

mylesshie commented May 9, 2018

+1

@623059008

This comment has been minimized.

Copy link

623059008 commented May 14, 2018

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

This comment has been minimized.

Copy link

qs-lll commented May 17, 2018

+1

4 similar comments
@luoxiaohui

This comment has been minimized.

Copy link

luoxiaohui commented May 23, 2018

+1

@sikeeoh

This comment has been minimized.

Copy link

sikeeoh commented May 26, 2018

+1

@shalakhin

This comment has been minimized.

Copy link

shalakhin commented Jun 29, 2018

+1

@yekai1003

This comment has been minimized.

Copy link

yekai1003 commented Aug 10, 2018

+1

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