I get these boost errors on mingw64 as well:
c:/data/miner2/deps/boost_1_54_0/boost/detail/interlocked.hpp:161:37: error: '_I
nterlockedExchange' is not a member of 'boost::detail'
# define BOOST_INTERLOCKED_EXCHANGE ::boost::detail::InterlockedExchange
Wolf can you explain what and where the BOOST_USE_WINDOWS_H fix goes?
Edit: Got it.. using lines like these in makefile.mingw fixed it:
DEFS=-DWIN32_LEAN_AND_MEAN -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DBOOST_USE_WINDOWS_H
LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat -static
Yeah, it goes in DEFS. I'm hoping the devs will put it in there so people don't have to fix it.
If you want to help us out go ahead and create a pull-request on
https://github.com/bitcoin/bitcoin/pulls 
.
Dia