Problems with Hello World

Started by KTaschner, June 24, 2010, 05:32:05 PM

Previous topic - Next topic

KTaschner

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.

EdPellesC99


  Ken,

  Are you building as a console program?

KTaschner


KTaschner

Silly me ... I was not building it as a console program ... all works now