command prompt problem

Hi I am in a very beginning of C.
I write and save the 'Hello World' program then follow the instruction to compile and run it. But every time with different examples Comand Prompt says:



'gcc' is not recognized as an internal or external command,oparable program or batch file.
( sometimes with different examples it always says the first word after > is not a comand!!!)

why????????


What Im doing:
1. Writing the 'Hello ' in Notepad.
2. Save the file with extension .c or .cpp
3.Open the comand prompt and it opens :
c:\documents and settings\ my name > ( I tryed to put the 'Hello' file there but the result is the same)
4. type the compile comand from the example
5.And every time it says : 'gcc' is not recognized as an internal or external command,oparable program or batch file. or sort of
it just do not accept this commands!!!


gcc is the GNU C compiler. You probably don't have it installed.

There is a variety of C and C++ compilers available. You can seach this forum or the WWW for help.
http://www.cplusplus.com/forum/beginner/8127/
http://www.cplusplus.com/forum/general/3053/
http://www.cplusplus.com/forum/beginner/2420/
...
You should tell where the compiler is located too
You should download the Microsoft Visual C++ Express IDE its a very power compiler and editor and much better than using Notepad and GCC for windows.
Topic archived. No new replies allowed.