title: How to redirect mingw output to a file
body: <p>I use msys2 on windows.
  Is it possible to redirect the mingw output to a file ?
  I tried to redirect the mintty output with no success.
  Thanks for your help</p>
  
  <p>Some precisions :
  I want to compile the openssl project on a windows platform using mingw. Under Linux, the sequence is : ./config then make clean the make then make test. Under mingw the sequence should be mingw64 ./config, then mingw64 make clean, then mingw64 make, then mingw64 make test. This sequence works but I want to redirect the outputs of mingw64 to a file. mingw64 is a mintty windows terminal. I can't find to do this redirection. Can you help me ? Thanks</p>