title: MinGW adds .exe to executables
body: <p>When I use g++ with MinGW:</p>
  
  <pre><code>g++ -o myProgram myProgram.cpp
  </code></pre>
  
  <p>g++ gives me not myProgram, but myProgram.exe. I know it doesn't have to name executables .exe, because </p>
  
  <pre><code>g++ -o a.out myProgram.cpp
  </code></pre>
  
  <p>produces a.out, with no .exe, and it does run.</p>
  
  <p>I don't like the extension because it's more complicated now to make a Makefile that will work in both Unix and MinGW, especially if I want to <code>make clean</code>. Is there a way to tell MinGW's g++, use the name I give you with -o, without changing it?</p>