Compiler issues

When I build a simple console application using codeBlocks and compile it I get this issue:

-------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall -fexceptions -g -c C:\Users\Nicholas\Desktop\test\main.cpp -o obj\Debug\main.o
mingw32-g++.exe: error: CreateProcess: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)
-------------------------------------------

I actually have quite some experience with C++ but my compiler (I think) just wont work and I have tried tons of things to solve it.

-I have re-installed codeblocks
-Re-installed compiler
-tried different compiler
-rebooted my computer


1
2
3
4
5
6
7
8
9
10
#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}
try saving the entire project to one location like D drive then run it from there. Other wise your code is fine.
Topic archived. No new replies allowed.