User Tools

Site Tools


command

This is an old revision of the document!


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:

<code c> #include <stdio.h>

int main(int argc, char *argv[]) {

  printf("Hello, world!\n");
  return 0;

} </code c>

command.1420565254.txt.gz · Last modified: 2015/01/06 18:27 by czerny