Author Topic: Error Creating New Project  (Read 4885 times)

Offline rjm001

  • Single posting newcomer
  • *
  • Posts: 2
Error Creating New Project
« on: December 12, 2011, 11:01:04 am »
Hello,

My OS is windows vista.

Problem:

Whenever I go file, new project, console application, etc. as soon as i click "finish" it gives me the error "couldn't create project directory."
It doesn't matter what I name the project or folder.

I don't know if this matters, but prior to using Code::Blocks I was trying to work with the MinGW MSYS on its own. I abandoned that, as it was not working, and uninstalled and deleted the files, but maybe something left over from that process is interfering? I also have a trial version of Visual Studio on my computer....

Also, I considered it could be a security setting problem from microsoft, but even when I reinstalled Code::Blocks in my own documents folder, I still got errors.

Any advice? I have been digging around all weekend for a good C compiler for a project I've been working on for school and haven't seemed to have any luck. :/

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Error Creating New Project
« Reply #1 on: December 12, 2011, 11:05:49 am »
Any advice? I have been digging around all weekend for a good C compiler for a project I've been working on for school and haven't seemed to have any luck. :/
Are you sure that you have access to the folder you want to create your project into? On Windows Vista/7 access to files/folders even for users of type "Admin" is restricted and you are not allowed to create files "everywhere". So please try another bas folder, e.g. one in your "My Files" directory.

The error message you refer to is shown, if the access to creating a file was blocked by the OS. Sometimes even a stupid anti-virus/firewall software may cause such.
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 rjm001

  • Single posting newcomer
  • *
  • Posts: 2
Re: Error Creating New Project
« Reply #2 on: December 13, 2011, 06:55:31 am »
You were right! It was just a windows security system problem.

Initially, I thought I had to install the whole Code::Blocks program through "My Documents" to get the security all right. But, by simply going in Code::Blocks file | new project | etc | and then explicitly choosing the folder to be one in my documents (via the ... icon), I was able to build a new project successfully. Thanks!!!