I'm starting to program C , and I made a basic C program hello.c
and I've written it on notepad. I want to compile it on DOS. How do I do that? Is it a problem if the file is written as hello.c.txt in dos? I did gcc hello.c but it wouldn't work. How do I compile C programs on dos?
3.save the file
4.open command prompt
5.go to folder where my file is stored
6.in command prompt write: gcc hello.c
7. i get error:
gcc: hello.c: no such file or directory
gcc: no input files
Name:
Anonymous2008-08-19 4:16
>>8
Did you enter dir to make sure the file is there? I'm guessing dir is the Windows equivalent of ls in loonix.
Name:
Anonymous2008-08-19 4:18
yea its there, but its written hello.c.txt
Name:
Anonymous2008-08-19 4:22
u dumass
open the file
click save as
where it says "TEXT DOCUMENT" click the drop down menu
click "ALL FILES"
then s-save and it should like, be .c now dude
woah
fuck
computers are smart!
Name:
Anonymous2008-08-19 4:24
no it still shows up as hello.c.txt
Name:
Anonymous2008-08-19 4:28
can someone who uses windows xp make a step by step guide to writing a c program in notepad and compiling using gcc on ms-dos
Upgrade your OS to Vista so that you have the ability to rename files. It's a complex feature that takes 4GB of RAM and a couple of TB of harddrive to implement.