Hi guys,,
i want to have C to my PC..i am using win XP. anyone can help me please

Dani AI

Generated

Short, practical guidance for : “C” is the language; what you install on Windows is a compiler/toolchain and (optionally) a simple editor or IDE, as pointed out. If the machine really is Windows XP, note Microsoft ended extended support on April 8, 2014 — running a networked development environment on XP is risky; upgrading the OS is strongly recommended. Windows XP lifecycle (Microsoft). (learn.microsoft.com)

Avoid ancient DOS-era compilers (the suggestion from is exactly the sort of setup warned will break or behave oddly). Prefer a maintained Windows-native toolchain that gives you GCC/clang, up-to-date headers and libraries, and package management. Good options are MinGW‑w64, or the MSYS2 distribution (which bundles mingw-w64 and a package manager); Cygwin is a third choice if you want a fuller Unix-like environment. Each project documents current installers and install notes. MinGW-w64 · MSYS2 · Cygwin. (mingw-w64.org)

Quick hands-on (what to do after installing a toolchain): write a small C file, then compile with gcc. Example:

#include <stdio.h>

int main(void) {
    printf("Hello, world\n");
    return 0;
}

Save as hello.c and run from the MinGW/MSYS/Cygwin shell:

gcc -o hello.exe hello.c
.\hello.exe

If gcc is not found, add the compiler’s bin folder to your PATH or use the distribution’s recommended shell (MSYS2’s MinGW terminals). Verify with gcc --version. See the GCC documentation for the -o option and invocation details. GCC: Invoking GCC. (gcc.gnu.org)

If needed, follow up by saying which exact Windows build you have and whether you can upgrade; that determines which installer and steps will work best.

Recommended Answers

All 4 Replies

C is a language, not a piece of software. If you want to download some software to compile a program written in the C language, you can go to Bloodshed's web site and download DevC++ IDE---for free, and it's got a good rep! You can compile either C or C++ programs with that software.

Member Avatar for Member #46692

Hi guys,,
i want to have C to my PC..i am using win XP. anyone can help me please

Turbo C is a good one too. It's totally free

>Turbo C is a good one too. It's totally free
Turbo C is not a good one, especially on Windows XP. If you're getting a compiler, actually get one that can handle your modern OS. Then we'll be able to avoid those annoying questions: "Why doesn't my C compiler that's old as dirt and written specifically for PC-DOS work on the latest build of Windows XP?" :rolleyes: And you just know that these Turbo C people will come out of the woodwork when Vista ships.

By the way, if you don't get the joke, please don't try to answer questions on this forum. You'll do more harm than good.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.