Codeblocks outputs broken executable
<p>I have downloaded plenty of different versions of code blocks, and none of them compiles quite right. My hello world runs within code blocks just fine. However, when I run the executable outside of codeblocks, it says "Hello.exe has stopped working". There isn't anything wrong with my code (I don't think.) and my mingw compiles fine outside of codeblocks. What does codeblocks do to my executable? Is there some option to fix this? I am on windows 7 64 bit, and my current code blocks version is 10.05. My program:</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

int main()
{
    cout &lt;&lt; "Hello world!" &lt;&lt; endl;
    cin.ignore();
    return 0;
}
</code></pre>
