C language > Beginner questions

Whats Wrong?

(1/1)

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.

Navigation

[0] Message Index

Go to full version