Can you compile Stockfish on Windows (without Unix/GNU), perhaps via Visual Studio?

The official "how to compile Stockfish on Windows" suggests using MinGW (see links below) and I am looking for a Windows-specific project build of Stockfish if it exists.


  • Are you wanting to compile it, or are you wanting a version that runs on Windows?
    – Tony Ennis
    Jan 4, 2015 at 2:39

1 Answer 1


The stockfish source code can be easily compiled with gcc, Visual Studio, XCode etc. In Visual Studio, create an empty project, use the mouse to drag all files in Stockfish into the project then press the compile button. Very simple.

The only reason that Visual Studio is not listed in the documentation is that the website maintainer (Daylen Yang) is a Mac and Linux user. He doesn't have Windows installed so he didn't care about it.

  • Ah, very good. Thanks. The exclusion on the official "compile on Windows" page just had me suspicious.
    – Xonatron
    Jan 6, 2015 at 16:27
  • I'll accept it, but I was actually going to try it out first to verify it (not questioning this doesn't work as it fits my initial thoughts). Wasn't trying to ignore your help! Thanks!
    – Xonatron
    Jan 7, 2015 at 14:59
  • So I eventually tried this. Just now. With Visual C++ 2010 Express. And the compile fails. I dragged all the files in and compiled, and nothing more. I believe it could be the make file and incorporating those settings into it. I'll play around with it and see what I can figure out.
    – Xonatron
    Apr 30, 2016 at 19:32
  • There seems to be a way to import the makefile into visual c++ 2010 express, but I have not figured it out yet. If anyone knows, let me know too!
    – Xonatron
    Apr 30, 2016 at 19:39

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.