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
Description
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 commentedon 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/?
yanxi123-com commentedon Apr 2, 2018
+1
brain-hu commentedon Apr 3, 2018
+1
brain-hu commentedon Apr 3, 2018
Solved.
cd ~/eos/build
sudo make install
cd ~/eos/contract/currency
eosiocpp -o currency.wast currency.cpp
itsmeprasanjit commentedon 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 commentedon May 9, 2018
+1
tempest2023 commentedon 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 commentedon May 17, 2018
+1
luoxiaohui commentedon May 23, 2018
+1
sikeeoh commentedon May 26, 2018
+1
shalakhin commentedon Jun 29, 2018
+1
yekai1003 commentedon Aug 10, 2018
+1