我要用一些编辑来编译BitCoinD。我试图做的时候
mingw32-make -f makefile.mingw
它让我回答:
g++ -c -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-par
ameter -g -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -D
USE_IPV6 -DUSE_IPV6=1 -IC:/Users/Proprietario/Desktop/litecoin-master-0.8/src/le
veldb/include -IC:/Users/Proprietario/Desktop/litecoin-master-0.8/src/leveldb/he
lpers -I"C:/Users/Proprietario/Desktop/litecoin-master-0.8/src" -I"c:/MinGW/deps
/boost_1_54_0" -I"c:/MinGW/deps/db-4.7.25.NC/build_unix" -I"c:/MinGW/deps/openss
l-1.0.0d/include" -o obj/alert.o alert.cpp
In file included from netbase.h:11:0,
from util.h:30,
from alert.h:13,
from alert.cpp:11:
compat.h:29:15: error: conflicting declaration 'typedef u_int SOCKET'
In file included from c:\strawberry\c\bin\../lib/gcc/x86_64-w64-mingw32/4.7.3/..
/../../../x86_64-w64-mingw32/include/winsock2.h:49:0,
from compat.h:15,
from netbase.h:11,
from util.h:30,
from alert.h:13,
from alert.cpp:11:
c:\strawberry\c\bin\../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x86_64-w64-m
ingw32/include/psdk_inc/_socket_types.h:11:18: error: 'SOCKET' has a previous de
claration as 'typedef UINT_PTR SOCKET'
mingw32-make: *** [obj/alert.o] Error 1
我该怎么做?
答案 0 :(得分:0)
compat.h:29:15: error: conflicting declaration 'typedef u_int SOCKET'
和
_socket_types.h:11:18: error: 'SOCKET' has a previous de
claration as 'typedef UINT_PTR SOCKET'
告诉您类型SOCKET
已经以两种不同的方式定义
摆脱或修改其中一个typedef。
你也可能包括一些你不需要包括的东西。