News:

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

Main Menu

Permission denied?

Started by Squibs47, July 24, 2011, 02:08:54 PM

Previous topic - Next topic

Squibs47

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.

MortenMacFly

Quote from: Squibs47 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.
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

diablochris

Quote from: MortenMacFly on July 24, 2011, 03:05:33 PM
Quote from: Squibs47 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.
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