问题描述
大家好,
我希望有人可以帮助/指导我。我有一个有效的应用程序,但今天我一直收到以下错误:
$
LNK2019函数中未解析的外部符号main引用"int __cdecl invoke_main(void)" (?invoke_main @@ YAHXZ)
$
唯一改变的是我将VS2017 15.5.4更新为VS2017 15.6.1(最新版)。我一直在这里和那里读书,我相信某些设置可能已经改变,现在程序未能"看到"主要功能。为了记录,
我在我的笔记本电脑中尝试了这个代码,它仍然有VS2017 15.5.4并且运行没有任何问题。知道它可能是什么?在此先感谢。
Hello all,
I hope someone can help/guide me here. I had a working application, but today I keep getting the following error:
LNK2019 unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
The only thing that changed was that I updated VS2017 15.5.4 to VS2017 15.6.1 (latest). I been reading here and there, and I believe somewhere some setting may have changed and now the program is failing to "see" the main function. For the record, I did try this code in my laptop which still has VS2017 15.5.4 and ran without any issues. Any idea what it may be? Thanks in advance.
推荐答案
有一件事要尝试,如果你只是使用基本的Windows控制台应用程序模板创建一个新的控制台应用程序,它是否成功构建?
One thing to try, if you just create a new console application, just using the basic Windows Console Application template, does it build successfully?
这篇关于未解析的外部“int __cdecl invoke_main(void)”在VS2017之后15.6.1更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!