Tuesday, March 3, 2015

[Trouble shooting] error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

Microsoft Visual Studio 2010

THIS IS A LINK PROBLEM
  • Error message
    • error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

    • MSVCRTD.lib(crtexew.obj) : error LNK2019: _WinMain@16 외부 기호(참조 위치: ___tmainCRTStartup 함수)에서 확인하지 못했습니다.
  • Solution
    • Properties -> linker -> system -> sub system
      'Windows (/SUBSYSTEM:WINDOWS)' to 'Console(/SUBSYSTEM:CONSOLE)'
       
    • 프로젝트->속성->구성 속성->링커->시스템->하위 시스템
      '창 (/SUBSYSTEM:WINDOWS)'를 '콘솔 (/SUBSYSTEM:CONSOLE)'로 바꿔 준다.

No comments:

Post a Comment