我第一天学习C ++,接着从“C ++初学者指南”的第一章输入这段代码:
#include <iostream>
using namespace std;
int main()
{
cout << "C++ is power prgramming.";
return 0;
}
然后当我调试它时,我收到一条错误消息:
“无法启动程序'F:\ Documents \ Visual Studio 2013 \ Projects \ Projects1 \ Debug \ Project1.exe'。 系统找不到指定的文件。“
输出中的错误显示:
1>CL : Command line warning D4024: unrecognized source file type '?', object file assumed
1> Microsoft (R) Incremental Linker Version 12.00.31101.0
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> /out:
1> ?.exe
1>LINK : fatal error LNK1146: no argument specified with option '/out:'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我看了一些似乎相似的帖子,但没有一个答案对我有帮助。我曾尝试在属性中添加附加库目录,但仍然没有帮助。在调试之前尝试编译,但仍然出现相同的错误。 我今天刚刚安装了Visual Studio,因此无法恢复默认值。
我还能做什么? 非常感谢。