Results 1 to 3 of 3

Thread: Executing a compiled file in 4.10

  1. #1
    Join Date
    Apr 2005
    Beans
    4

    Executing a compiled file in 4.10

    I took a graphics class once (all theory, very little programming) and I'd like to get back into that. I may have OpenGL set up correctly, but I'm not sure. I have an old program from the class (done on Solaris) and it compiles. I try to run it, and I just get 'commend not found'. I'm in the same folder as the file, and it is an executable. Can anyone tell me why this isn't working?

    Matt

  2. #2
    Join Date
    Jan 2005
    Location
    Adelaide, Australia
    Beans
    340

    Re: Executing a compiled file in 4.10

    It would've helped if you posted how you compiled it and how you tried to run it, but I can guess.

    If your program is called "foo", and you are in the directory where it lives, you execute it by typing "./foo".

    If you just type "foo", the bash shell will only execute foo if it can find it in the PATH. This is kind of a security feature to stop sysadmins being tricked into running programs they didn't mean to run. The "./" tells bash, "yes I really do want to run the program in the current directory."

    Is this what happened?

  3. #3
    Join Date
    Apr 2005
    Beans
    4

    Re: Executing a compiled file in 4.10

    That did it, thanks.

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
  •