News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Whats Wrong?

Started by Frozen, September 10, 2007, 04:01:28 PM

Previous topic - Next topic

Frozen

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 ***

frankie

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.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide