gpt4 book ai didi

c++ - Visual Studio fatal error LNK1120 :

转载 作者:太空狗 更新时间:2023-10-29 21:44:21 24 4
gpt4 key购买 nike

我只是想用 viual stidio 2010 做一个程序当我构建时,我有这个异常(exception)我只是写了空的主要 C++ 程序(没有语法错误)

我得到的是:

1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>c:\users\dell\documents\visual studio 2010\Projects\test\Debug\test.exe :
fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

代码是:

#include <iostream>
using namespace std;

int main()
{
cout << "Hello World" << endl;
return 0;
}

请尽快帮我解决谢谢,,

最佳答案

您创建了一个 Win32 项目!确保在项目向导中选择控制台应用程序。

关于c++ - Visual Studio fatal error LNK1120 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20274838/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com