When I do auto detect, it switches to:Go to Settings->Compiler and debugger... and select "GNU GCC Compiler" from the drop-down menu at the top.
C:\Program Files\Microsoft Visual Studio 8\VC
[...]
Currently, The code blocks folder (and thus, MinGW within) are located directly on c:\
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
cout << "Press enter to close program"; //Let the user know the program is done.
cin.sync(); //Clear the buffer (just in case).
cin.get(); //Wait for the enter key.
return 0; //Exit the program.
}