A Win32 console programm

Start the Pelles C ide first.

Use 'File' –> 'New' –> 'Project' to start the 'New Project' dialog.

  1. Select 'Console application wizard' to get a little help.
  2. Select your working directory under 'Location'.
  3. Give your project a 'Name', say 'test'.
  4. Click 'ok' to use these settings.

A subfolder 'test' is created by the wizard in your working directory. There is also a file named 'main.c' which will compile to 'test.exe'. Last but not least there is a project file created with the name 'test.ppj'.

'main.c' includes the following source code:

#include <stdio.h>
 
int main(int argc, char *argv[])
{
    printf("Hello, world!\n");
    return 0;
}

Now you can change some project settings. Select 'Project' –> 'Project Options':

Now you can use 'Project' –> 'Build' (or 'Rebuild') to compile your project.

Then it is possible to use 'Project' –> 'Execute' to run 'test.exe' or to use 'Project' –> 'Debug' to start the debugger.

That's it!