I'm trying to follow this site's guide for C++ at http://cplusplus.com/doc/tutorial/program_structure/.
Very basic to begin with, or so I thought. I've downloaded Code::Blocks MinGW, newest version. I've also searched the forums and based on that advice I changed the compiler path under Settings -> Compiler and debugger (using auto detect to make sure it is correct). Now, when I try to run the following I am told I need to build first:
// my first program in C++
using namespace std;
int main ()
cout << "Hello World!";
However, when asked 'Do you want to build it now?' and clicking Yes, nothing happens and the box reappears. If I select No, then a command window appears which states 'Process returned 0 (0x0) execution time 0.001 s Press any key to continue.'
The build log reports the following:
Checking for existence: D:\Project 1\bin\Debug\Project 1.exe
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "D:\Project 1\bin\Debug\Project 1.exe" (in D:\Project 1\.)
Process terminated with status 0 (1 minutes, 10 seconds)
Can someone help and give insight?