NO

Author Topic: Problems with Hello World  (Read 2619 times)

KTaschner

  • Guest
Problems with Hello World
« 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!
Code: [Select]
#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

  • Guest
Re: Problems with Hello World
« Reply #1 on: June 24, 2010, 05:50:31 PM »

  Ken,

  Are you building as a console program?

KTaschner

  • Guest
Re: Problems with Hello World
« Reply #2 on: June 24, 2010, 05:56:59 PM »
I thought so

KTaschner

  • Guest
Re: Problems with Hello World
« Reply #3 on: June 24, 2010, 06:00:07 PM »
Silly me ... I was not building it as a console program ... all works now