There are no error messages, the code compiles fine. I added a cin so that the console does not close immediatly:
#include <iostream>
using namespace std;
int main(void)
{
int var = 0;
cout << "Hello world" << endl;
cin >> var;
return 0;
}
#include <iostream>
using namespace std;
int main(void)
{
int var = 0;
cout << "Hello world" << endl;
cin >> var;
return 0;
}
To copy to clipboard, switch view to plain text mode
when I add mingwm10.dll and libgcc_s_dw2-1.dll the programm gets executed, but nothing happens. No console pops up 
My project file looks now like the one from Chris. I don't really know what other informations you need.
Bookmarks