C on Windows XP?

Status
Not open for further replies.

Possibility

Attempting
Jun 25, 2006
212
1
0
www.nickbakewell.com
I'm sorry, this is a dumb question, but I can't seem to find a straight answer. Is C already installed on windows computers? Or do I have to download it somewhere like you do Java? And is there a default compiler? I downloaded a C compiler and tried to compile a classic "Hello World" file, but it terminated because it said at #include <stdio.h> could not be found.
 


All that comes with Windows XP are the runtime libraries for Visual C++ 6.0 (and VB6), not the include files. You can download Visual Studio Express C++ (as well as VB.NET and C# Express) from MSDN but you'll have to install the .NET Framework 2.0 to use it. Both of these are hefty downloads.

You might also try one of the open source C/C++ compilers.
 
c compilers compile to form a .exe, you don't need anything to run it like java. you can download a free c compiler with all the libraries like stdhio.h gcc is popular on linux, don't know about windows.

why would you write internet marketing stuff in c when php is much easier,much more suited to web/http stuff, written in c and provides wrappers to many c functions.
 
C/C++ are great for low level stuff but if you need something coded quickly that's relatively bulletproof it isn't so great. For that you need to use PHP or Java if you're running on Linux or VB.NET or C# if you're running under Windows.
 
Install cygwin tools, you should be able to install gcc from there. that should get you everything you need.
 
Status
Not open for further replies.