User forums > Help

Windows 7 project creation error

(1/1)

robinsonc494:
Hi all,
I've just been told about codeblocks and installed it.
Install went fine but then i try to create a project and i get the error

Cannot create C:Blocks\HelloWorld\Hello.cbp
Maybe the file is write protected.

I'm running windows 7 ultimate.

I've tried changing permissions on the folder to Full for my user name to allow write and modifications
Then i tried runing the program as an Admin
After that i uninstalled codeblocks and reinstalled as an Administrator.
When that didn't work i reinstalled as an administrator in my documents.

But the program insists on saving files to C:Blocks....

Usually there is a backward slash before the folder name but it never shows. When i check C:\Blocks
the project folder and sub folder is created but no files are in there.

Can i change where these files are being saved? I set my project folder to be in a subdirectory of my documents
but it still wants to create this file in the blocks directory....


Any help or advice on getting around this?

thanks in advance....

robinsonc494:
unbelievable...i got it. On the final screen when creating the projject

manually set the "resulting filename" field to a the directory on ur HDD
include the \ so it looks similar to C:\Blocks\....

this worked after that then you can create you project in any folder on windows
and it automatically includes the \ in the path name and it all works now
.....
it may be a bug but i'm not sure and i've literally only started using this now so
not confident on that enough to report it as such....

st_adamin:
I'll bet you're right about permissions.  I had no problems setting up and running Code::Blocks on Win 7.  But long before I set it up, I had changed all of the UAC settings to minimum/off.  On the default settings I couldn't even install firefox.

d075567:
Thank you adding the C:\  To my project file name work.

Navigation

[0] Message Index

Go to full version