Hello,
I am trying to compile a wallet for my coin KaChingCoin. It is a clone of smallchange. Source code is
https://github.com/cryptocoindude/KaChingCoinI have all the deps setup, use QT 4.8.4 to make it. I have tried boost 53,54,and 55. I get an error making it, here it is:
from src/bignum.h:13,
from src/main.h:9,
from src/wallet.h:9,
from src/init.h:9,
from src\qt\bitcoin.cpp:11:
c:\deps\boost_1_53_0/boost/tuple/detail/tuple_basic.hpp: In function 'typename b
oost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::co
ns<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT,
TT>&)':
c:\deps\boost_1_53_0/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef
'cons_element' locally defined but not used [-Wunused-local-typedefs]
typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
^
In file included from c:\deps\boost_1_53_0/boost/config.hpp:57:0,
from c:\deps\boost_1_53_0/boost/thread/detail/platform.hpp:14,
from c:\deps\boost_1_53_0/boost/thread/thread.hpp:12,
from c:\deps\boost_1_53_0/boost/thread.hpp:13,
from src/util.h:22,
from src/bignum.h:13,
from src/main.h:9,
from src/wallet.h:9,
from src/init.h:9,
from src\qt\bitcoin.cpp:11:
c:\deps\boost_1_53_0/boost/tuple/detail/tuple_basic.hpp: In member function 'boo
st::tuples::cons<HT, TT>& boost::tuples::cons<HT, TT>::operator=(const std::pair
<_U1, _U2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_325' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/detail/tuple_basic.hpp:325:5: note: in expansio
n of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<cons>::value == 2); // check length = 2
^
c:\deps\boost_1_53_0/boost/tuple/detail/tuple_basic.hpp: In member function 'boo
st::tuples::tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>& boost::tuples::tuple<
T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::operator=(const std::pair<_U1, _U2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_582' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/detail/tuple_basic.hpp:582:5: note: in expansio
n of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<tuple>::value == 2);// check_length = 2
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp: In function 'bool boost::
tuples::operator==(const boost::tuples::cons<HH, TT>&, const boost::tuples::cons
<S1, S2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_114' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp:114:3: note: in expansion
of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<T2>::value == length<S2>::value);
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp: In function 'bool boost::
tuples::operator!=(const boost::tuples::cons<HH, TT>&, const boost::tuples::cons
<S1, S2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_126' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp:126:3: note: in expansion
of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<T2>::value == length<S2>::value);
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp: In function 'bool boost::
tuples::operator<(const boost::tuples::cons<HH, TT>&, const boost::tuples::cons<
S1, S2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_136' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp:136:3: note: in expansion
of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<T2>::value == length<S2>::value);
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp: In function 'bool boost::
tuples::operator>(const boost::tuples::cons<HH, TT>&, const boost::tuples::cons<
S1, S2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_146' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp:146:3: note: in expansion
of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<T2>::value == length<S2>::value);
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp: In function 'bool boost::
tuples::operator<=(const boost::tuples::cons<HH, TT>&, const boost::tuples::cons
<S1, S2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_156' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp:156:3: note: in expansion
of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<T2>::value == length<S2>::value);
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp: In function 'bool boost::
tuples::operator>=(const boost::tuples::cons<HH, TT>&, const boost::tuples::cons
<S1, S2>&)':
c:\deps\boost_1_53_0/boost/static_assert.hpp:125:21: warning: typedef 'boost_sta
tic_assert_typedef_166' locally defined but not used [-Wunused-local-typedefs]
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
^
c:\deps\boost_1_53_0/boost/tuple/tuple_comparison.hpp:166:3: note: in expansion
of macro 'BOOST_STATIC_ASSERT'
BOOST_STATIC_ASSERT(length<T2>::value == length<S2>::value);
^
In file included from src/bignum.h:13:0,
from src/main.h:9,
from src/wallet.h:9,
from src/init.h:9,
from src\qt\bitcoin.cpp:11:
src/util.h: At global scope:
src/util.h:555:16: error: conflicting declaration 'typedef void* pthread_t'
typedef HANDLE pthread_t;
^
In file included from C:/mingw32/i686-w64-mingw32/include/c++/i686-w64-mingw32/b
its/gthr-default.h:35:0,
from C:/mingw32/i686-w64-mingw32/include/c++/i686-w64-mingw32/b
its/gthr.h:148,
from C:/mingw32/i686-w64-mingw32/include/c++/ext/atomicity.h:35
,
from C:/mingw32/i686-w64-mingw32/include/c++/bits/basic_string.
h:39,
from C:/mingw32/i686-w64-mingw32/include/c++/string:52,
from c:\Qt\4.8.4\include/QtCore/../../src/corelib/tools/qstring
.h:54,
from c:\Qt\4.8.4\include/QtCore/qstring.h:1,
from c:\Qt\4.8.4\include/QtCore/../../src/corelib/kernel/qobjec
t.h:48,
from c:\Qt\4.8.4\include/QtCore/qobject.h:1,
from c:\Qt\4.8.4\include/QtGui/../../src/gui/kernel/qwidget.h:4
6,
from c:\Qt\4.8.4\include/QtGui/qwidget.h:1,
from c:\Qt\4.8.4\include\QtGui/../../src/gui/widgets/qmainwindo
w.h:45,
from c:\Qt\4.8.4\include\QtGui/qmainwindow.h:1,
from c:\Qt\4.8.4\include\QtGui/QMainWindow:1,
from src\qt\bitcoingui.h:4,
from src\qt\bitcoin.cpp:4:
C:/mingw32/i686-w64-mingw32/include/pthread.h:196:19: error: 'pthread_t' has a p
revious declaration as 'typedef uintptr_t pthread_t'
typedef uintptr_t pthread_t;
^
In file included from src/bignum.h:13:0,
from src/main.h:9,
from src/wallet.h:9,
from src/init.h:9,
from src\qt\bitcoin.cpp:11:
src/util.h: In function 'pthread_t CreateThread(void (*)(void*), void*, bool)':
src/util.h:578:12: error: invalid conversion from 'HANDLE {aka void*}' to 'pthre
ad_t {aka unsigned int}' [-fpermissive]
return hthread;
^
In file included from c:\deps\boost_1_53_0/boost/interprocess/errors.hpp:37:0,
from c:\deps\boost_1_53_0/boost/interprocess/exceptions.hpp:20,
from c:\deps\boost_1_53_0/boost/interprocess/shared_memory_obje
ct.hpp:17,
from c:\deps\boost_1_53_0/boost/interprocess/ipc/message_queue.
hpp:17,
from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_53_0/boost/interprocess/detail/win32_api.hpp: At global scope:
c:\deps\boost_1_53_0/boost/interprocess/detail/win32_api.hpp:861:116: warning: d
eclaration of 'void* boost::interprocess::winapi::CreateMutexA(boost::interproce
ss::winapi::interprocess_security_attributes*, int, const char*)' with C languag
e linkage [enabled by default]
extern "C" __declspec(dllimport) void * __stdcall CreateMutexA(interprocess_sec
urity_attributes*, int, const char *);
^
In file included from c:\deps\boost_1_53_0/boost/thread/win32/thread_data.hpp:11
:0,
from c:\deps\boost_1_53_0/boost/thread/thread.hpp:15,
from c:\deps\boost_1_53_0/boost/thread.hpp:13,
from src/util.h:22,
from src/bignum.h:13,
from src/main.h:9,
from src/wallet.h:9,
from src/init.h:9,
from src\qt\bitcoin.cpp:11:
c:\deps\boost_1_53_0/boost/thread/win32/thread_primitives.hpp:119:55: warning: c
onflicts with previous declaration 'void* boost::detail::win32::CreateMutexA(boo
st::detail::win32::_SECURITY_ATTRIBUTES*, int, const char*)' [enabled by default
]
__declspec(dllimport) void* __stdcall CreateMutexA(_SECURITY_AT
TRIBUTES*,int,char const*);
^
In file included from c:\deps\boost_1_53_0/boost/interprocess/errors.hpp:37:0,
from c:\deps\boost_1_53_0/boost/interprocess/exceptions.hpp:20,
from c:\deps\boost_1_53_0/boost/interprocess/shared_memory_obje
ct.hpp:17,
from c:\deps\boost_1_53_0/boost/interprocess/ipc/message_queue.
hpp:17,
from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_53_0/boost/interprocess/detail/win32_api.hpp:866:127: warning: d
eclaration of 'void* boost::interprocess::winapi::CreateSemaphoreA(boost::interp
rocess::winapi::interprocess_security_attributes*, long int, long int, const cha
r*)' with C language linkage [enabled by default]
extern "C" __declspec(dllimport) void * __stdcall CreateSemaphoreA(interprocess
_security_attributes*, long, long, const char *);
^
In file included from c:\deps\boost_1_53_0/boost/thread/win32/thread_data.hpp:11
:0,
from c:\deps\boost_1_53_0/boost/thread/thread.hpp:15,
from c:\deps\boost_1_53_0/boost/thread.hpp:13,
from src/util.h:22,
from src/bignum.h:13,
from src/main.h:9,
from src/wallet.h:9,
from src/init.h:9,
from src\qt\bitcoin.cpp:11:
c:\deps\boost_1_53_0/boost/thread/win32/thread_primitives.hpp:120:55: warning: c
onflicts with previous declaration 'void* boost::detail::win32::CreateSemaphoreA
(boost::detail::win32::_SECURITY_ATTRIBUTES*, long int, long int, const char*)'
[enabled by default]
__declspec(dllimport) void* __stdcall CreateSemaphoreA(_SECURIT
Y_ATTRIBUTES*,long,long,char const*);
^
In file included from c:\deps\boost_1_53_0/boost/interprocess/detail/windows_int
ermodule_singleton.hpp:26:0,
from c:\deps\boost_1_53_0/boost/interprocess/detail/tmp_dir_hel
pers.hpp:22,
from c:\deps\boost_1_53_0/boost/interprocess/shared_memory_obje
ct.hpp:22,
from c:\deps\boost_1_53_0/boost/interprocess/ipc/message_queue.
hpp:17,
from src\qt\bitcoin.cpp:23:
c:\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:
In instantiation of 'static ThreadSafeGlobalMap& boost::interprocess::ipcdetail
::intermodule_singleton_common<ThreadSafeGlobalMap>::get_map() [with ThreadSafeG
lobalMap = boost::interprocess::ipcdetail::intermodule_singleton_helpers::window
s_semaphore_based_map]':
c:\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:
125:48: required from 'static void boost::interprocess::ipcdetail::intermodule
_singleton_common<ThreadSafeGlobalMap>::initialize_singleton_logic(void*&, volat
ile uint32_t&, void* (*)(ThreadSafeGlobalMap&), bool) [with ThreadSafeGlobalMap
= boost::interprocess::ipcdetail::intermodule_singleton_helpers::windows_semapho
re_based_map; uint32_t = unsigned int; boost::interprocess::ipcdetail::intermodu
le_singleton_common<ThreadSafeGlobalMap>::singleton_constructor_t = void*(boost:
:interprocess::ipcdetail::intermodule_singleton_helpers::windows_semaphore_based
_map&)]'
c:\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:
334:103: required from 'static void boost::interprocess::ipcdetail::intermodul
e_singleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::atentry_work() [wit
h C = boost::interprocess::ipcdetail::windows_bootstamp; bool LazyInit = true; b
ool Phoenix = true; ThreadSafeGlobalMap = boost::interprocess::ipcdetail::interm
odule_singleton_helpers::windows_semaphore_based_map]'
c:\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:
323:26: required from 'static C& boost::interprocess::ipcdetail::intermodule_s
ingleton_impl<C, LazyInit, Phoenix, ThreadSafeGlobalMap>::get() [with C = boost:
:interprocess::ipcdetail::windows_bootstamp; bool LazyInit = true; bool Phoenix
= true; ThreadSafeGlobalMap = boost::interprocess::ipcdetail::intermodule_single
ton_helpers::windows_semaphore_based_map]'
c:\deps\boost_1_53_0/boost/interprocess/detail/tmp_dir_helpers.hpp:45:97: requ
ired from here
c:\deps\boost_1_53_0/boost/interprocess/detail/intermodule_singleton_common.hpp:
203:93: warning: dereferencing type-punned pointer will break strict-aliasing ru
les [-Wstrict-aliasing]
return *static_cast<ThreadSafeGlobalMap *>(static_cast<void *>(&mem_holde
r.map_mem[0]));
^
In file included from c:\deps\boost_1_53_0/boost/system/system_error.hpp:14:0,
from c:\deps\boost_1_53_0/boost/thread/exceptions.hpp:22,
from c:\deps\boost_1_53_0/boost/thread/win32/thread_primitives.
hpp:16,
from c:\deps\boost_1_53_0/boost/thread/win32/thread_data.hpp:11
,
from c:\deps\boost_1_53_0/boost/thread/thread.hpp:15,
from c:\deps\boost_1_53_0/boost/thread.hpp:13,
from src/util.h:22,
from src/bignum.h:13,
from src/main.h:9,
from src/wallet.h:9,
from src/init.h:9,
from src\qt\bitcoin.cpp:11:
c:\deps\boost_1_53_0/boost/system/error_code.hpp:214:36: warning: 'boost::system
::posix_category' defined but not used [-Wunused-variable]
static const error_category & posix_category = generic_category();
^
c:\deps\boost_1_53_0/boost/system/error_code.hpp:215:36: warning: 'boost::system
::errno_ecat' defined but not used [-Wunused-variable]
static const error_category & errno_ecat = generic_category();
^
c:\deps\boost_1_53_0/boost/system/error_code.hpp:216:36: warning: 'boost::system
::native_ecat' defined but not used [-Wunused-variable]
static const error_category & native_ecat = system_category();
^
Makefile.Release:685: recipe for target 'build/bitcoin.o' failed
mingw32-make: *** [build/bitcoin.o] Error 1
C:\Users\Backup\Downloads\KaChingCoin-master\KaChingCoin-master>
Any ideas?