LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

前端 未结 12 2037
广开言路
广开言路 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:17

    this main works in both linux and windows - found it through trial and error and help from others so can't explain why it works, it just does int main(int argc, char** argv)

    no tchar.h necessary

    and here is the same answer in Wikipedia Main function

提交回复
热议问题