Results 1 to 5 of 5

Thread: Running compiled apps in codeblocks?

  1. #1
    Join Date
    Nov 2006
    Location
    US, Ohio
    Beans
    123
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Question Running compiled apps in codeblocks?

    So I have installed codeblocks and I am running Ubuntu 8.10 if it makes a difference however I don't belive it does.

    When I compiled applications in windows it created an executable for me that I could return to, to run again so I could use my application. Well thats not exactly how things work in linux, so I was wondering how is it that I can "re-use" an application that I have compiled using codeblocks.

    Thanks!
    Axis

  2. #2
    Join Date
    Nov 2006
    Location
    US, Ohio
    Beans
    123
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Running compiled apps in codeblocks?

    Bump...?

    If it makes a difference these are C++ applications I am trying to re-run.

  3. #3
    Join Date
    Nov 2008
    Location
    Here, There, Everywhere
    Beans
    1,163
    Distro
    Xubuntu

    Re: Running compiled apps in codeblocks?

    Quote Originally Posted by Axis View Post
    When I compiled applications in windows it created an executable for me that I could return to, to run again so I could use my application. Well thats not exactly how things work in linux, so I was wondering how is it that I can "re-use" an application that I have compiled using codeblocks.
    That's exactly how things work in Linux. The difference is that Linux executables don't have an extension. I don't know how codeblocks works, but after you compile your program, browse your project directory for a extension-less file, that should be your executable.

  4. #4
    Join Date
    Nov 2006
    Location
    US, Ohio
    Beans
    123
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Running compiled apps in codeblocks?

    Its located in the BIN folder of the project folder. And if I navigate to it through terminal then it runs and everything works well. However, if I open it with terminal it doesn't work, and it doesn't do anything when I double click on it either.....

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Beans
    1,039
    Distro
    Ubuntu

    Re: Running compiled apps in codeblocks?

    Quote Originally Posted by Axis View Post
    Its located in the BIN folder of the project folder. And if I navigate to it through terminal then it runs and everything works well. However, if I open it with terminal it doesn't work, and it doesn't do anything when I double click on it either.....
    that's because of the built in protection stopping things from just doing things without you knowing..

    in the terminal add ./ before to show you really want to execute it
    Code:
    /home/blabla/yourfolder$ ./nameofthefile
    of right click it in your folder, select properties then permissions and check the box for "Allow executing file as Program"

Tags for this Thread

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
  •