Author Topic: Permission denied?  (Read 4252 times)

Squibs47

  • Guest
Permission denied?
« on: July 24, 2011, 02:08:54 pm »
I built a simple code that prints "Hio" in the output. But after the build it says "Cannot open file C:\Hello World access denied." I don't know how to fix this.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Permission denied?
« Reply #1 on: July 24, 2011, 03:05:33 pm »
I built a simple code that prints "Hio" in the output. But after the build it says "Cannot open file C:\Hello World access denied." I don't know how to fix this.
When you are using Windows Vista or later, and/or you are not an admin, access to the root folder of your had disk is usually denied by Windows.

To fix, select an output folder to store your data where you have write access, e.g. "My Files" or deeper.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline diablochris

  • Single posting newcomer
  • *
  • Posts: 2
Re: Permission denied?
« Reply #2 on: September 16, 2011, 08:52:56 am »
I built a simple code that prints "Hio" in the output. But after the build it says "Cannot open file C:\Hello World access denied." I don't know how to fix this.
When you are using Windows Vista or later, and/or you are not an admin, access to the root folder of your had disk is usually denied by Windows.

To fix, select an output folder to store your data where you have write access, e.g. "My Files" or deeper.
Thanks a lot,your reply helped me solve the problem