title: Mingw-w64 "Cannot download repository.txt" Error
body: <p>I am trying to install MinGW-w64 in Windows 7.</p>
  
  <p><a href="https://i.stack.imgur.com/rJLp4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rJLp4.png" alt="Running .exe file"></a>.</p>
  
  <p>but I keep getting the error:</p>
  
  <blockquote>
    <p>"Cannot download repository.txt". </p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/R4nTw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R4nTw.png" alt="Error"></a></p>
  
  <p>I have read multiple threads about this and downloaded multiple .exe files but none of them work for me. I have MATLAB R2016a with the bug to use the Add-ons window. I tried to install MinGW-w64 directly with some work-arounds but nothing worked. So I am trying to install MinGW-w64 directly into Windows 7 and then assign it to MATLAB as the Compiler to enable me to build s-functions in Simulink.</p>
  
  <p>How to fix this problem?</p>