compiling .c file

S

Snake

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
 
L

llewelly

Snake said:
Hi guys,
Iam trying to compile golf.c file which is in my c:\ drive using windows
comman.

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:

http://www.bloodshed.net/devcpp.html
www.mingw.org
www.cygwin.org
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?!!

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top