Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: narendrav on March 16, 2011, 07:23:58 pm
-
I use codeblocks on windows 7.The first 2 or 3 programmes were compiled well.
they were just simple "hello world" programmes.But from then on it started showing
an error that "PERMISSION IS DENIED".It was the only error that it showed.
I dont know what to do.I am new to C programming and I liked Code blocks because it has a white background.
Please help me
-
Save/Start the project in a folder you have rights to save/update it in.
NOTE: You should NOT save the project under Program Files folder.
Or directly under the C:\ drive.
Tim S.
-
So If i install the software in D or any other drive,you say it will work.Actually,I purchased my laptop 5 days back and it has only C drive.
I dont know how to create another drive so that I can save the software in another drive
So I am very confused.
Thanks for your repl Mr.Tim and it would be of great help for me if you can put me out of this problems.
By the way my laptop is
ACER TIMELINE 4820T
-
So If i install the software in D or any other drive,you say it will work.
NO, I DID NOT SAY THAT!
Edit: Someone who knows how to explain Windows Folders Permissions to an Windows 7 Newbie, please answer, I give up.
Edit2: Another Thread that says Anti-Virus can cause related problem; not the same as what I was thinking "Windows Folders Permissions".
http://forums.codeblocks.org/index.php/topic,11832.0.html
Tim S.
-
I use codeblocks on windows 7.The first 2 or 3 programmes were compiled well.
they were just simple "hello world" programmes.But from then on it started showing
an error that "PERMISSION IS DENIED".It was the only error that it showed.
I dont know what to do.I am new to C programming and I liked Code blocks because it has a white background.
Please help me
It sounds like you are new to many things besides C programming.
Create a folder for your programs under ""Documents", because there you will have permission to write at will.
From then on, select that folder as the location for your projects in Code::Blocks.
-
I installed CodeBlocks to C:\Develop\CodeBlocks on my computer, you definitely shouldn't install it into Program Files or other similar system folders or you can get that error.
I have a C:\Develop folder (or you could put it in %userprofile%\CodeBlocks and perhaps put your projects in the same %userprofile%\Projects, this way you know you can write there and they're easily accessible by simply clicking the folder on your desktop that has your name.
If you're uncertain where %userprofile% is, just open up a command prompt, it always starts in there by default (provided you're not starting the command prompt with administration rights).
Have you tried running the program as Administrator? This may also help, although I like to avoid doing that if possible.