Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual C++ 2010 - CL.exe exit code 5

When I try to compile my project in Release mode CL.exe exits with code 5. There are no more messages about what's going wrong.

Does someone have an idea?

like image 211
jhasse Avatar asked Apr 19 '26 05:04

jhasse


1 Answers

From my experience, system error code 5 aka ERROR_ACCESS_DENIED can be because of a few problems.

  1. You may already have the .exe open, in which case just close the .exe and try to run again.
  2. You may not have write access to where ever you are writing. This is a strange predicament, though to ensure you do, either go to the folder and set the permissions to write, or starting Visual Studio in administrator mode may work.
like image 181
josephthomas Avatar answered Apr 20 '26 21:04

josephthomas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!