Thread: Couldn't create project directory

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    3

    Couldn't create project directory

    This is probably a noob question but this is my first time programming and I'm picking this up for fun. I followed the tutorial or "getting started" portion of this website and when i try to create a new project, after naming it, i try to create it but I keep on getting this error message saying "Couldn't create project directory. I'm really confused! help please!

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    What IDE are you using?
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    3
    whats an IDE

  4. #4
    Registered User
    Join Date
    Dec 2010
    Posts
    3
    code blocks?

  5. #5
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Make sure the place you're trying to create the project directory is somewhere you can write to (so you don't want it in C:\temp, or C:\windows, etc.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 08-11-2009, 06:45 AM
  2. Out of space when compiling kernel
    By NuNn in forum Linux Programming
    Replies: 3
    Last Post: 04-01-2009, 02:43 PM
  3. How to create a C project with multiple source files
    By MSF1981 in forum C Programming
    Replies: 5
    Last Post: 03-22-2009, 09:25 AM
  4. Another question on classes
    By hpy_gilmore8 in forum C++ Programming
    Replies: 26
    Last Post: 05-24-2003, 09:11 AM
  5. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM