Pelles C forum

C language => Beginner questions => Topic started by: Frozen on September 10, 2007, 04:01:28 PM

Title: Whats Wrong?
Post by: Frozen on September 10, 2007, 04:01:28 PM
I started to learn C but I have a problem...
Whats Wrong???

/* Das Hello-World-Programm */

#include <stdio.h>

int main()
{
   printf("Hello World!\n") ;

   return 0;
}


POLINK: error: Unresolved external symbol '_WinMain'.
POLINK: fatal error: 1 unresolved external(s).
*** Fehlercode: 1 ***
Title: Re: Whats Wrong?
Post by: frankie on September 10, 2007, 05:38:36 PM
Select "win32 console program" from the project wizard, or from the menu project options->linker tab select subsystem = console. For a console program entry point is "main".
"WinMain" is the etry point for a GUI program.