News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Complie error or build error

Started by yatish, October 26, 2017, 10:58:49 AM

Previous topic - Next topic

yatish

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))

Commaster

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.