g++ -c -pipe -D_FORTIFY_SOURCE=2 -O2 -frtti -fexceptions -mthreads -fdiagnostics
-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wst
ack-protector -Wno-unused-variable -Wno-unused-function -Wno-strict-aliasing -Lc
:\MinGW\bin\libexec\gcc\mingw32\4.8.1 -DUNICODE -DQT_GUI -DBOOST_THREAD_USE_LIB
-DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -D_MT -DQT_THREAD_SUP
PORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQ
T_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NEEDS_QMAIN -I".
.\..\..\Qt\4.8.5\include\QtCore" -I"..\..\..\Qt\4.8.5\include\QtNetwork" -I"..\.
.\..\Qt\4.8.5\include\QtGui" -I"..\..\..\Qt\4.8.5\include" -I"src" -I"src\json"
-I"src\qt" -I"..\..\..\deps" -I"src\leveldb\include" -I"src\leveldb\helpers" -I"
..\..\boost_1_55_0" -I"..\..\db-4.8.30.NC\build_unix" -I"..\..\openssl-1.0.1e\in
clude" -I"..\..\..\Qt\4.8.5\include\ActiveQt" -I"build" -I"build" -I"..\..\..\Qt
\4.8.5\mkspecs\win32-g++" -o build\rpcnet.o src\rpcnet.cpp
In file included from src\netbase.h:11:0,
from src\net.h:19,
from src\rpcnet.cpp:6:
src\compat.h:14:0: warning: "FD_SETSIZE" redefined [enabled by default]
#define FD_SETSIZE 1024 // max number of fds in fd_set
^
In file included from c:\mingw\include\windows.h:93:0,
from ..\..\openssl-1.0.1e\include/openssl/rand.h:67,
from src\net.h:11,
from src\rpcnet.cpp:6:
c:\mingw\include\winsock.h:62:0: note: this is the location of the previous defi
nition
#define FD_SETSIZE 64
^
In file included from src\compat.h:17:0,
from src\netbase.h:11,
from src\net.h:19,
from src\rpcnet.cpp:6:
c:\mingw\include\ws2tcpip.h:38:2: error: #error "ws2tcpip.h is not compatible wi
th winsock.h. Include winsock2.h instead."
#error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead
."
^
In file included from src\schnorr.h:11:0,
from src\hash.h:17,
from src\net.h:22,
from src\rpcnet.cpp:6:
src\cryptopp/osrng.h:43:0: warning: ignoring #pragma comment [-Wunknown-pragmas
]
#pragma comment(lib, "advapi32.lib")
^
In file included from src\compat.h:17:0,
from src\netbase.h:11,
from src\net.h:19,
from src\rpcnet.cpp:6:
c:\mingw\include\ws2tcpip.h:147:8: error: redefinition of 'struct ip_mreq'
struct ip_mreq {
^
In file included from c:\mingw\include\windows.h:93:0,
from ..\..\openssl-1.0.1e\include/openssl/rand.h:67,
from src\net.h:11,
from src\rpcnet.cpp:6:
c:\mingw\include\winsock.h:315:8: error: previous definition of 'struct ip_mreq'
struct ip_mreq {
^
In file included from src\compat.h:17:0,
from src\netbase.h:11,
from src\net.h:19,
from src\rpcnet.cpp:6:
c:\mingw\include\ws2tcpip.h:390:13: error: expected initializer before 'freeaddr
info'
void WSAAPI freeaddrinfo (struct addrinfo*);
^
c:\mingw\include\ws2tcpip.h:391:12: error: expected initializer before 'getaddri
nfo'
int WSAAPI getaddrinfo (const char*,const char*,const struct addrinfo*,
^
c:\mingw\include\ws2tcpip.h:393:12: error: expected initializer before 'getnamei
nfo'
int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD,
^
In file included from src\cryptopp/pubkey.h:35:0,
from src\cryptopp/eccrypto.h:7,
from src\schnorr.h:12,
from src\hash.h:17,
from src\net.h:22,
from src\rpcnet.cpp:6:
src\cryptopp/modarith.h: In copy constructor 'CryptoPP::ModularArithmetic::Modul
arArithmetic(const CryptoPP::ModularArithmetic&)':
src\cryptopp/modarith.h:29:2: warning: base class 'class CryptoPP::AbstractRing<
CryptoPP::Integer>' should be explicitly initialized in the copy constructor [-W
extra]
ModularArithmetic(const ModularArithmetic &ma)
^
Makefile.Release:3231: recipe for target 'build/rpcnet.o' failed
mingw32-make: *** [build/rpcnet.o] Error 1
If I try to copy content of winsock2.h and replace ws2tcpip.h, i will get an error at netbase.cpp where it need ws2tcpip.h , so I can't really fix this part
#error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
what should i do..