错误LNK2019和LNK 1120 [英] Errors LNK2019 and LNK 1120
本文介绍了错误LNK2019和LNK 1120的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在尝试编译程序时遇到同样的错误( http://pastebin.com/TABk4bya)。错误说 -
I keep getting the same error when I try to compile my program (http://pastebin.com/TABk4bya). The error says -
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>c:\users\logan\documents\visual studio 2012\Projects\Assignment 09\Debug\Assignment 09.exe : fatal error LNK1120: 1 unresolved externals
我试图搜索,但我似乎无法找到问题是什么。
I have tried to search but I cannot seem to find out what the problem is.
我已经粘贴到pastebin,所以你可以很容易地看到/指出哪些行的错误。谢谢!
P.S. I have pasted it to pastebin so you can easily see/point out which lines the error is on. Thank You!
推荐答案
您有
int Main()
它应该是
int main()
主
与主
不同。
这篇关于错误LNK2019和LNK 1120的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文