Code::Blocks Forums

User forums => Help => Topic started by: robinsonc494 on May 12, 2010, 12:25:03 pm

Title: Windows 7 project creation error
Post by: robinsonc494 on May 12, 2010, 12:25:03 pm
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....
Title: Re: Windows 7 project creation error
Post by: robinsonc494 on May 12, 2010, 01:11:00 pm
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....
Title: Re: Windows 7 project creation error
Post by: st_adamin on May 12, 2010, 03:59:34 pm
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.
Title: Re: Windows 7 project creation error
Post by: d075567 on July 20, 2010, 02:52:36 am
Thank you adding the C:\  To my project file name work.