Program Name

This is a discussion on Program Name within the C Programming forums, part of the General Programming Boards category; beware - windows programmer env SunOS 5.6 shell ksh I have just run cc on a very small program and ...

  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, 12: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, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21