So i've been having this problem for months now, didn't have this problem a while ago and it's happening on all my computers. Basically I can't run anything I write in codeblocks. It's all the same error. For example if I write:
//main.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "Whazzzuppp" << endl;
}
I receive the dialogue box "It seems that this file has not been built yet. Do you want to build it now?"
No matter how many times I select "yes" it still returns and doesn't do anything. Meanwhile the build log keeps saying:
Compiling: C:\Users\TheDoctor\Desktop\Untitled1.cpp
Execution of 'g++.exe -c C:/Users/TheDoctor/Desktop/Untitled1.cpp -o C:/Users/TheDoctor/Desktop/Untitled1.o' in 'C:\Users\TheDoctor\Desktop' failed.
Nothing to be done.
Checking for existence: C:\Users\TheDoctor\Desktop\Untitled1.exe
On the dialogue box, if I select no, then the command line opens with nothing in it except "Process returned 0 (0x0) execution time : 0.000 s
Press any key to continue.
The Build log says (when I select no):
Compiling: C:\Users\TheDoctor\Desktop\Untitled1.cpp
Execution of 'g++.exe -c C:/Users/TheDoctor/Desktop/Untitled1.cpp -o C:/Users/TheDoctor/Desktop/Untitled1.o' in 'C:\Users\TheDoctor\Desktop' failed.
Nothing to be done.
Checking for existence: C:\Users\TheDoctor\Desktop\Untitled1.exe
Executing: C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe "C:\Users\TheDoctor\Desktop\Untitled1.exe" (in C:\Users\TheDoctor\Desktop)
I am using Cygwin GCC as my compiler, I have installed it and all the files are there.
Any help would be much appreciated!