I am trying to build Bitcoin 0.13 for Windows. I've always used this guide for building previous versions. Now seems that developers have changed their mind regarding Windows, and the new way seems cross-compile from Ubuntu. I have followed step by step the new instructions, but I haven't been able to get it built. Seems that instructions are either not correct or not up to date. Here is what I've found so far:

  • zconf.h file not found, solved manually copying it from /usr/include/x86_64-linux-gnu to projectdir/depends/x86_64-w64-mingw32/include
  • [unsolved]warning: undefined symbols not allowed in x86_64-w64-mingw32 shared libraries; building static only while compiling secp256k1 lib
  • [unsolved] I tried to configure and make secp256k1 manually before running the "main" make for solving previous issue, but then I get this error: /usr/bin/x86_64-w64-mingw32-ld: attempted static link of dynamic object secp256k1/.libs/libsecp256k1.so

I stuck here, any help is appreciated. Also, I could also accept to build on Windows (like before) if necessary, as long as it works. Thanks.

  • Bitcoin Core releases binaries have been cross-compiled since forever (0.3.x era), though builds on Windows have been and still are possible. Commented May 11, 2017 at 3:39
  • 1
    Many thanks for this info. So how do I solve the above errors?
    – user197675
    Commented May 11, 2017 at 9:37
  • The second error, "warning: undefined symbols" may be the end of line character in the code. By the way, what is reason behind in Windows OS? The processing speed would be slower...
    – Cloud Cho
    Commented Mar 31, 2022 at 5:45

1 Answer 1


By using the pull request and instructions at https://github.com/bitcoin/bitcoin/pull/11526 you can build Bitcoin Core, except the two Qt dependent projects, with Visual Studio (or msbuild tools) on Windows.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.