Thread: code blocks tutorial not done yet

  1. #1
    Registered User
    Join Date
    Dec 2011
    Location
    Waterloo, Ontario, Canada
    Posts
    1

    Exclamation code blocks tutorial not done yet

    hi
    i ve tried this tutorial to set up the code blocks to work

    Setting up Code::Blocks and MINGW, A Free C and C++ Compiler, on Windows - Cprogramming.com

    i m almost done, but when i try to run
    main.cpp

    i get this error in my build messages section:

    cannot open output file bin\Release\practice.exe Permission denied


    i see what the error is like, i just need to change the permission

    but where to do it?

    i just wanna make sure i got code blocks to build/compile/run as it should

    help would be much apr-ed

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    This is most likely a Windows error.
    Either

    a) Change your project directory to somewhere within your document,
    b) Run C::B as admin, or
    c) Disable UAC
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    a) Change your project directory to somewhere within your document,
    b) Run C::B as admin, or
    c) Disable UAC
    All of those seem like horrible ideas. I'd run Windows explorer as an admin and try to uncheck things like "read only" on the directory. Also make sure that nothing else is running, using that directory. Applications can lock it and prevent changes.

    There has to be a way, but I'm not the smartest when it comes to permissions. I generally don't ........ with it.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Putting stuff in your document is a recommended solution. Unfortunately many programs do not understand that application data should not be put inside the program directory, which C::B seems to be doing.
    Sure, you can change the permissions of the file system, but that's usually a bad idea.

    Disabling UAC, in my opinion, is the best solution since it's broken, anyway. Programs don't ask for permissions, even Microsoft programs, and you can't do send-to programs from a non-elevated program to an elevated program, etc, etc.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with code::blocks
    By Souradeep in forum C++ Programming
    Replies: 6
    Last Post: 12-22-2010, 03:48 AM
  2. Code::Blocks Help
    By rakeshkool27 in forum C Programming
    Replies: 0
    Last Post: 01-16-2010, 08:25 AM
  3. code::blocks
    By wart101 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-18-2007, 07:42 AM
  4. code::blocks
    By wart101 in forum Tech Board
    Replies: 4
    Last Post: 01-15-2007, 07:38 AM

Tags for this Thread