compiling .c file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Snake

    compiling .c file

    Hi guys,
    Iam trying to compile golf.c file which is in my c:\ drive using windows
    comman.
    so when I write cc golf.c ,it tells me " "cc" is not recognized as and
    internal or extenral function command, operable program or bacth file."
    what should I do? do I neded to change the path to something?!!
    thank u very much




  • llewelly

    #2
    Re: compiling .c file

    "Snake" <hana1@rogers.c om> writes:
    [color=blue]
    > Hi guys,
    > Iam trying to compile golf.c file which is in my c:\ drive using windows
    > comman.[/color]

    Is golf.c C, or C++ ? If it is C, please ask in a C forum, such as
    comp.lang.c .

    Do you have a C or C++ compiler? If you do have a compiler, ask in a
    forum specific to your operating system (windows, I assume)

    If you do not have a compiler, you must install one. There are many
    availible; I will list only one example: gcc, which may be
    obtained for windows from any of:




    [color=blue]
    > so when I write cc golf.c ,it tells me " "cc" is not recognized as and
    > internal or extenral function command, operable program or bacth file."
    > what should I do? do I neded to change the path to something?!![/color]

    This part is platform-specific, and off-topic here. You will get
    better help in a windows-specific forum. Roughly, you need to find
    out where your C compiler is installed, and add its location to
    your path, but it has been some time since I used a windows
    machine, and I do not recall the commands to do this.

    Comment

    Working...