Announcement

Collapse
No announcement yet.

Hey, programmers, come here for a second

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hey, programmers, come here for a second

    Doing stuff in C for the first time, and I can get code to compile just fine.

    However, for reasons that are completely beyond me, it simply refuses to run a.out (or whatever choose to have the output be named.)

    (bash: a.out: command not found)

    Yes, I'm in the right directory and such. If I do 'gdb a.out' and then 'run' the program functions happily. It just doesn't work from the shell.

    What the hell is the deal with this?
    "You're the biggest user of hindsight that I've ever known. Your favorite team, in any sport, is the one that just won. If you were a woman, you'd likely be a slut." - Slowwhand, to Imran

    Eschewing silly games since December 4, 2005

  • #2
    <Reverend> IRC is just multiplayer notepad.
    I like your SNOOPY POSTER! - While you Wait quote.

    Comment


    • #3
      Unlike dos/windows/etc., most unix-alikes won't check the current
      directory for an executable unless you explicitly add it to your PATH.
      You can use './' to execute a file in the current directory.

      There we go.
      "You're the biggest user of hindsight that I've ever known. Your favorite team, in any sport, is the one that just won. If you were a woman, you'd likely be a slut." - Slowwhand, to Imran

      Eschewing silly games since December 4, 2005

      Comment

      Working...
      X