xcode help

Discussion in 'Mac Programming' started by silencejinn, Feb 26, 2005.

  1. macrumors newbie

    Joined:
    Feb 26, 2005
    #1
    hi, i just installed xcode on my pb, i try to compile a c code, it worked. but i do not know how to run that ".out" file on my terminal.
    need help from all you guys.
    thanks a lot
    ps:any xcode learning website suggest?
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    do an ls -l to make sure it's executable (look for x in the user permissions). Assuming it is type ./<name of file>.out (you need the ./ as the current directory is not normally in your PATH). Note that it is normal to rename the compiled executable to not have the .out extension!

    If the file is not executable do chmod u+x <name of file>
     
  3. thread starter macrumors newbie

    Joined:
    Feb 26, 2005
    #3
    still no good

    the file is executable and i have the permission. but how to change the name?
    i tried just use "a", it doesn't work. what should i do?
    thanks
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    You seem very uncomfortable with the command line! Use the Finder to change the name, or type mv <full name> <new name> the full name includes all extensions (i.e. mv a.out mygreatprogram).
     
  5. macrumors 65816

    devman

    Joined:
    Apr 19, 2004
    Location:
    AU
    #5

Share This Page