ld.exe: cannot open output file … : Permission denied

前端 未结 12 434
我寻月下人不归
我寻月下人不归 2020-12-04 14:02

I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped.

I decided to fir

相关标签:
12条回答
  • 2020-12-04 14:52

    I had the same behaviour, and fixed it by running Code::Blocks as administrator.

    0 讨论(0)
  • 2020-12-04 14:52
    1. Open task manager -> Processes -> Click on .exe (Fibonacci.exe) -> End Process

      if it doesn't work

    2. Close eclipse IDE (or whatever IDE you use) and repeat step 1.

    0 讨论(0)
  • 2020-12-04 14:55

    If you think the executable is locked by a process, try Process Explorer from SysInternals. In the File/handle, enter Fibonacci.exe and you should see who holds the file.

    If it is not enough, you can use Process Monitor (from SysInternals, again) to follow the activity of all processes on your system on Fibonacci.exe. With a little bit of analysis (call stacks), you'll may find out why the access to the file is denied and what make it disappear.

    0 讨论(0)
  • 2020-12-04 14:55

    Your program is still running. You have to kill it by closing the command line window. If you press control alt delete, task manager, process`s (kill the ones that match your filename).

    0 讨论(0)
  • 2020-12-04 14:59

    i experienced a similar issue. Bitdefender automatically quarantined each exe-file i created by MinGW g++. Instead of the full exe-file i found a file with a weird extension 'qzquar' testAutoPtr1.exe.48352.gzquar

    When i opened quarantined items in Bitdefender i found my exe-file quarantined there.

    0 讨论(0)
  • 2020-12-04 15:03

    I got this error when using the Atom editor and mingw (through a package called gpp-compiler) for C++. Closing the open console window fixed my issue.

    0 讨论(0)
提交回复
热议问题