Results 1 to 10 of 15

Thread: code::blocks build and run error

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Beans
    12

    code::blocks build and run error

    I just finished my first day of computer science class and I am trying to get my hello world program to work in code::blocks.

    Its written in C++ and if I use g++ I can compile and run in manually, but when I try to build and run it in code::blocks it pops up the command line and gives me a permission denied error.

    Any ideas what might be going on here?

    Thanks a bunch
    Justin

  2. #2
    Join Date
    Dec 2007
    Beans
    81
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: code::blocks build and run error

    Got the exact error? Permission denied to what?

  3. #3
    Join Date
    Jun 2008
    Beans
    12

    Re: code::blocks build and run error

    Im at work at the moment, ill post the exact error when I get home.

    It was something along the lines of:

    "sh: [path of the file here] permission denied"

  4. #4
    Join Date
    Jun 2008
    Beans
    12

    Re: code::blocks build and run error

    Ok, so when I run it from code::blocks I get the following error:

    Code:
    sh: /home/jdwolford/CS161/helloworld/helloworld: Permission denied
    
    Press enter to continue.
    It looks like its trying to run the following command:
    Code:
    Executing: xterm -T '/home/jdwolford/CS161/helloworld/helloworld' -e /usr/bin/cb_console_runner "/home/jdwolford/CS161/helloworld/helloworld" (in /home/jdwolford/CS161/helloworld)

  5. #5
    Join Date
    Apr 2006
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: code::blocks build and run error

    check the permissions are executable.

    when you compile a new program you may have to assign it a +x with chmod:
    Code:
    chmod + <name of program>
    This may work, not absolutely sure

    Mike

  6. #6
    Join Date
    Aug 2008
    Beans
    8

    Re: code::blocks build and run error

    I happen to have the same problem...
    Does any one know how to allow code blocks to run and compile without getting that permission denied window?
    Would be appreciated

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •