Tuesday, 15 March 2011

c++ - Another error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup -


I know that this has been asked for a thousand times, but I can not fix this simple problem.

This code is:

  #include "windows.h" extern "C" {INT WinAPI WinMain (Histence hInst, Hindas, LPSTR strCmdLine, INT) {return 0 ; }}   

The subsystem is set to Windows (/ SUBSYSTEM: WINDOWS) . I have the following error:

Error LNK2019: Unresolved external symbols referenced in _WinMain @ 16 function ___tmainCRTS startup

The error was caused because the file WinMain was defined as a .h file, and therefore not included In the project was done.

No comments:

Post a Comment