where can i get the c and c++ compiler.i eed to run it on a windows xp machine.

Dani AI

Generated

OP asked where to get a C/C++ compiler for Windows XP. Earlier replies from (Dev‑C++, Pelles C) and (GCC) are still historically correct, but today the best practical choices depend on whether the XP box will stay on XP or can be upgraded.

Windows XP reached end of support on April 8, 2014 — running a networked dev machine on XP is risky and many modern toolchains no longer support it. (Microsoft lifecycle: Windows XP). (learn.microsoft.com)

If the machine must remain XP: install an older GCC build or an IDE bundled with an XP-era toolchain. TDM‑GCC provides easy, XP‑compatible installers and is a common, lightweight way to get GCC on older Windows. (TDM‑GCC project page). Or grab an older Dev‑C++ build (the legacy/orwell/dev forks include XP‑era releases) if a simple IDE is wanted. (See Dev‑C++ forks/releases). (jmeubank.github.io)

Quick checklist to get started on XP:

  • Install TDM‑GCC or an older Dev‑C++ bundle.

  • Add the compiler bin folder to PATH.

  • Test from a command prompt:

    gcc --version
    gcc -o hello.exe hello.c

Modern toolchains and package managers (MSYS2, recent MinGW‑w64 builds) target newer Windows (Windows 8.1+) and may fail on XP; mingw‑w64 binaries have reported XP incompatibilities (winpthreads/GetTickCount64 issues). If possible, develop on a newer host or use a VM to build with current toolchains and produce XP‑compatible binaries. (MSYS2 Windows support, [MinGW‑w64 notes/issues]). (msys2.org)

This keeps and ’s original suggestions accurate while adding modern compatibility notes and concrete steps for an XP environment.

Recommended Answers

All 3 Replies

Get the Dev C++ compiler package from:

http://www.bloodshed.net/

and the Pelles C compiler package from:

Both are free and contain an IDE to write and compile your programs from.

gcc is also a good choice for c++ compiler

I just found out that this offer is still active.
Microsoft is in the process of bringing out:
Visual C++ Express
I think it is supposed to be a student version of their highly regarded VC. You can still download the free beta version at:

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.