Author Topic: Complie error or build error  (Read 169 times)

Offline yatish

  • Single posting newcomer
  • *
  • Posts: 1
Complie error or build error
« 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))

Online Commaster

  • Multiple posting newcomer
  • *
  • Posts: 72
Re: Complie error or build error
« Reply #1 on: October 26, 2017, 11:45:06 am »
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.