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
Trying to build max coin window qt, but have this issue.
You should use one of the latest mingw-builds toolchains. See step 1.1 to get a working environment.
Can someone please help me with this issue, I don't know what I did before to fix it but I just installed win7 in a vm to give it a try on windows7 instead of windows 8 and I am back at to the following error. I have tried installing MinGW over I know someone said install msys over mingw but I have no clue what they are talking about as haven't clarrified t hemself when asked what they meant, so any help would be greatly appreciated. I have also checked my path variables and everything seems to be correct.
C:\JennyCoin>mingw32-make -f Makefile.Release
cd C:/JennyCoin/src/leveldb && CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE mingw32-make OPT="-pipe -fno-keep-inline
-dllexport -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && ranlib C:/JennyCoin/src/leveldb/libleveldb.a && ranlib C
:/JennyCoin/src/leveldb/libmemenv.a
'CC' is not recognized as an internal or external command,
operable program or batch file.
Makefile.Release:317: recipe for target 'C:/JennyCoin/src/leveldb/libleveldb.a' failed
mingw32-make: *** [C:/JennyCoin/src/leveldb/libleveldb.a] Error 1
C:\JennyCoin>
Compile leveldb in msys shell and ensure genleveldb commands are commented out in your project file before qmaking and making the project.