Thread: Program Name

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    93

    Program Name

    beware - windows programmer

    env SunOS 5.6
    shell ksh

    I have just run cc on a very small program and it has produced an a.out file

    The man pages say "The link editor will make an a.out executable if there were no errors in linking"

    but they do not say how I turn it into an executable with the same name !

    Is there anywhere else I can read up on the cc compiler ?


    tia,

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    28
    not sure if this answers you question or not but with my compiler I use

    gcc prog.c -o outfile.exe

    outfile.exe being the name of the file the compiler will create.

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    93
    thank you both very much,

    I think I prefer using -o rather than renamimg every file I create

    when I typed man cc it produced two pages of text, but details about -o were not among them, that's why I asked for a link

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    93
    excellent


    ty

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM