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..
You are most likely using the wrong toolchain. You should use one of the latest mingw-builds toolchains.
I took me at least two 40 hour weeks to get my first coin to build under windows. It took 5 minutes under Linux. Once you get the environment setup right, it will go easier.
the windows wallet can't be built under linux though right?
In theory you could cross-compile, spent a week trying, on and off, and never got there. Always one piece that wouldn't fit in the puzzle.
Windows executables can be cross-compiled on gitian. See
http://gavintech.blogspot.it/2014/02/gitian-building-bitcoin-releases.htmlBeen trying to build for months off and on... Followed the instructions to the letter and on any build, I always get the same exact error message when I try to run the otherwise cleanly compiled executable:
What am I doing wrong here?
Windows 7 x64 build environment which is freshly installed in a VM.
Not crashing here. Make sure your build environment and project file are ok.