I have used Code blocks IDE for about a week now, and all worked fine until yesterday when I tried to build this code:
#include <iostream>
using namespace std;
int main()
{
int sum = 0 , value = 0;
while(cin >> value){
sum += value;
cout << "summen er: " << endl;
cout << sum <<endl;
}
return 0;
}
Which resulted in the following build log:
(x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\While_input.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I can no longer compile and run any code neither older projects which earlier this week worked fine.
I googled the problem and tried the following solutions:
- run Code Blocks as admin
- switch of Firewall
- re install Code blocks
- use task manager to see whether my application was still running.
So far nothing has worked. Does anyone know how I can fix this?
While_input.exeremoved? - Niall