Pelles C forum

C language => Beginner questions => Topic started by: KTaschner on June 24, 2010, 05:32:05 PM

Title: Problems with Hello World
Post by: KTaschner on June 24, 2010, 05:32:05 PM
I am new both to C and Pelles.  I tried building an hello world and get the following errors.  I looked at some other posts and tried those suggestions with no luck.  If I build the sample hello world it works.  Help please!
#include <stdio.h>

int main(void)

{
printf("Hello Ken\n");
return 0;
}


Building \\crnas03\home\my documents\Pelles C Projects\Loops\Loops.exe.
POLINK: error: Unresolved external symbol '_WinMain@16'.
POLINK: fatal error: 1 unresolved external(s).
*** Error code: 1 ***
Done.
Title: Re: Problems with Hello World
Post by: EdPellesC99 on June 24, 2010, 05:50:31 PM

  Ken,

  Are you building as a console program?
Title: Re: Problems with Hello World
Post by: KTaschner on June 24, 2010, 05:56:59 PM
I thought so
Title: Re: Problems with Hello World
Post by: KTaschner on June 24, 2010, 06:00:07 PM
Silly me ... I was not building it as a console program ... all works now