Post
Topic
Board Development & Technical Discussion
Re: Building headless Bitcoin and Bitcoin-qt on Windows
by
baokychen
on 29/03/2014, 08:12:57 UTC
Code:
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\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:147:8: erro
r: redefinition of 'struct ip_mreq'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winsock.h:315:8: error
: previous definition of 'struct ip_mreq'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:390:13: err
or: expected initializer before 'freeaddrinfo'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:391:12: err
or: expected initializer before 'getaddrinfo'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/ws2tcpip.h:393:12: err
or: expected initializer before 'getnameinfo'
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::Modu
larArithmetic(const CryptoPP::ModularArithmetic&)':
src\/cryptopp/modarith.h:29:2: warning: base class 'class CryptoPP::AbstractRing
' should be explicitly initialized in the copy constructor [-
Wextra]
In file included from src\/cryptopp/simple.h:10:0,
                 from src\/cryptopp/filters.h:6,
                 from src\/cryptopp/randpool.h:5,
                 from src\/cryptopp/osrng.h:10,
                 from src\/schnorr.h:11,
                 from src\/hash.h:17,
                 from src\/net.h:22,
                 from src\rpcnet.cpp:6:
src\/cryptopp/misc.h: In function 'std::string CryptoPP::IntToString(T, unsigned
 int) [with T = unsigned int, std::string = std::basic_string]':
src\/cryptopp/simple.h:35:128:   instantiated from here
src\/cryptopp/misc.h:414:2: warning: comparison of unsigned expression < 0 is al
ways false [-Wtype-limits]
Makefile.Release:3231: recipe for target 'build/rpcnet.o' failed
mingw32-make: *** [build/rpcnet.o] Error 1


How to fix this error with ws2tcpip.h is not compaitable with winsock.h Include winsock2.h instead
If I take away ws2tcpip.h, it will end up issue at netbase.cpp where its use parameter of ws2tcpip.h , anyone can help resolve this Smiley

Trying to build max coin window qt, but have this issue.