LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

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

    I had this error when accidentally putting the wmain inside a namespace. wmain should not be in any namespace. Moreover, I had a main function in one of the libs I was using, and VS took the main from there, what made it even stranger.

提交回复
热议问题