I think you are supposed to do it in Cygwin, anyways. Also, try running it in msvc 2015 x64 tools cmd line window (not sure if that will work though). Another thing you can do is, run hcustom, it has a parameter which dumps all flags, defines, etc, passed to compiler. You can then manually set up your own project using those (that's how I set up the CMake stuff mentioned above).