LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

前端 未结 12 2027
广开言路
广开言路 2020-12-02 18:36

I have the following error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup,

There are a lot of threads relating to this error bu

12条回答
  •  天命终不由人
    2020-12-02 19:20

    I find that when i choose option of Project->Properties->Linker->System->SubSystem->Console(/subsystem:console), and then make sure include the function : int _tmain(int argc,_TCHAR* argv[]){return 0} all of the compiling ,linking and running will be ok;

提交回复
热议问题