Fixed compile error on Debian jessie (gcc version 4.8.2)
Missed stdint.h in alert.cpp
Fixed compile error on Debian jessie (gcc version 4.8.2)
Missed stdint.h in alert.cpp
This was my output after pulling the last git head (master), running ./autogen.sh and ./configure –with-incompatible-bdb and make
Solved by addding stdint.h to alert.cpp
0$ make
1Making all in src
2make[1]: Entering directory `/home/mikalv/repos/git/cpp/bitcoin/src'
3make all-recursive
4make[2]: Entering directory `/home/mikalv/repos/git/cpp/bitcoin/src'
5Making all in .
6make[3]: Entering directory `/home/mikalv/repos/git/cpp/bitcoin/src'
7 CXX addrman.o
8 CXX alert.o
9In file included from /usr/include/boost/atomic.hpp:12:0,
10 from /usr/include/boost/thread/pthread/once_atomic.hpp:20,
11 from /usr/include/boost/thread/once.hpp:20,
12 from allocators.h:14,
13 from serialize.h:9,
14 from alert.h:9,
15 from alert.cpp:6:
16/usr/include/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope
17 typedef atomic<uintptr_t> atomic_uintptr_t;
18 ^
19/usr/include/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
20 typedef atomic<uintptr_t> atomic_uintptr_t;
21 ^
22/usr/include/boost/atomic/atomic.hpp:202:43: error: invalid type in declaration before ‘;’ token
23 typedef atomic<uintptr_t> atomic_uintptr_t;
24 ^
25make[3]: *** [alert.o] Error 1
26make[3]: Leaving directory `/home/mikalv/repos/git/cpp/bitcoin/src'
27make[2]: *** [all-recursive] Error 1
28make[2]: Leaving directory `/home/mikalv/repos/git/cpp/bitcoin/src'
29make[1]: *** [all] Error 2
30make[1]: Leaving directory `/home/mikalv/repos/git/cpp/bitcoin/src'
31make: *** [all-recursive] Error 1