Table of Contents

Getting Started on Windows for C/C++ Beginners

This article gives step-by-step information from software installation to the completion of a Hello World program.

Install TDM-GCC (the compiler)

http://tdm-gcc.tdragon.net/download

Choose the 32bit (No -w64 suffix), bundled, sjlj version.

Install it with default options unless you know what you are doing.

Make sure that GCC is accessible in PATH

You should get something like this in your CMD

C:\>gcc
gcc: fatal error: no input files
compilation terminated.

Otherwise, you should add appropriate PATH manually.

Install Geany (the IDE)

If you are not sure, download and install the version comes with GTK runtime.

Hello World for C

#include <stdio.h>
 
int main( void )
{
    printf("Hello, World!\n");
    return 0;
}

Hello World for C++

#include <iostream>
 
int main( )
{
    std::cout << "Hello, World!\n" << std::endl;
    return 0;
}

Finish Your Hello World Program