Hi pointercrash(),
No any problem with your source code. Did you specify the correct project type at the beginning?
Selecting the Win32 Console program ( EXE ) option in the New Project wizard, I get the following .ppj file :
#
# PROJECT FILE generated by "Pelles C for Windows, version 5.00".
# WARNING! DO NOT EDIT THIS FILE.
#
POC_PROJECT_VERSION = 5.00.1#
POC_PROJECT_TYPE = 3#
POC_PROJECT_ARGUMENTS = #
POC_PROJECT_WORKPATH = #
POC_PROJECT_EXECUTOR = #
CC = pocc.exe#
AS = poasm.exe#
RC = porc.exe#
LINK = polink.exe#
SIGN = posign.exe#
CCFLAGS = -Tx86-coff -Ot -W1 -Gd #
ASFLAGS = -AIA32 -Gd #
RCFLAGS = -r#
LINKFLAGS = -subsystem:console -machine:x86 kernel32.lib advapi32.lib delayimp.lib#
SIGNFLAGS = -location:CU -store:MY -timeurl:http://timestamp.verisign.com/scripts/timstamp.dll -errkill#
INCLUDE = $(PellesCDir)\Include\Win;$(PellesCDir)\Include#
LIB = $(PellesCDir)\Lib\Win;$(PellesCDir)\Lib#
.SILENT:
#
# Build test.exe.
#
test.exe: \
output\test.obj
$(LINK) $(LINKFLAGS) -out:"$@" $**
#
# Build test.obj.
#
output\test.obj: \
test.c
$(CC) $(CCFLAGS) "$!" -Fo"$@"
.EXCLUDEDFILES: