Thread: Need help with codeblocks

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    3

    Need help with codeblocks

    hey i am trying to expand my programming knoweledge - have downloaded and fully installed code blocks - when i run it and try to run my first project i get the error - cannot open output file bin\Debug\First project.exe Permission denied

    have i set something up wrong or is windows being windows
    any advice greatly appreciated thanks

    note: i get this error in both c and c++

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I suppose you should check that you're not trying to create the program in some restricted place, like C:\Windows.

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    3
    as far as i know ive set the directory in C:\codeblocks\New folder

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by SilverClif View Post
    as far as i know ive set the directory in C:\codeblocks\New folder
    If you go there in Windows explorer will it let you add a file there? Have you tried it in a normal spot, like a new folder inside your documents directory?

  5. #5
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    ..If everything fails..try running as Administrator..!..the free 'root' key in Windows..

  6. #6
    Registered User
    Join Date
    May 2011
    Posts
    3
    put new folder on my desktop and ran codebloks again and all is solved it seems
    - far as i can tell it didnt create the folder so had nowhere to put the file - thanks heaps for the advice

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    In Vista and Win7, they introduced a new file organization... Users now have a home folder. You can do anything you want within that folder.

    It's default location is C:\USERS\<YOURUSERNAME> so it's nice and easy to get to. If you go to the start menu and click on your user name it will open. That's where you put your stuff. Make a folder for "Coding" or such and and use that for your projects.

    Making folders on your desktop is generally not a very good idea as the desktop itself is behind a hidden folder and is actually the sum of 2 different folders displayed together... a user desktop and a global desktop. On multi-user setups you could actually be making folders that show up on someone else's desktop...

    If you want a shortcut to your home folder on your desktop, just drag the icon from the start bar and drop it there.
    Last edited by CommonTater; 05-24-2011 at 05:18 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using codeblocks
    By torquemada in forum Tech Board
    Replies: 7
    Last Post: 04-20-2011, 08:57 PM
  2. Cant compile using Codeblocks 10.05
    By laimaretto in forum Windows Programming
    Replies: 2
    Last Post: 12-15-2010, 12:24 PM
  3. gcc vs CodeBlocks compiler
    By CDdotdot47 in forum C Programming
    Replies: 8
    Last Post: 08-13-2010, 12:43 PM
  4. Codeblocks.
    By Kitt3n in forum C++ Programming
    Replies: 5
    Last Post: 05-16-2010, 01:50 PM
  5. Codeblocks gets a new release
    By indigo0086 in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 03-01-2008, 02:36 PM