Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: yatish on October 26, 2017, 10:58:49 am
-
I get this error on the second time compilation of the program even I close all cmd windows and restart the code blocks software, unable to understand why this error comes, please provide any solution.
mingw32-g++.exe -o bin\Debug\FirstProgram.exe obj\Debug\main.o
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\FirstProgram.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-
Show the whole path to "bin\Debug\FirstProgram.exe". If it contains non-english symbols or spaces, it might be the cause.
Also, disable all antivirus software.