Ter*_*son 5 testing visual-studio-2008 visual-c++
嗨有谁知道是什么原因造成这个错误?在Visual Studio 2008中使用Visual Assert谢谢
1>------ Build started: Project: ChessRound1, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocnum(135) : error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file
1>Build log was saved at "file://c:\Users\Admin1\Documents\Visual Studio 2008\Projects\ChessRound1\ChessRound1\Debug\BuildLog.htm"
1>ChessRound1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)
发生这种情况是因为项目中的某些内容配置为使用预编译头文件,但没有配置任何内容来创建它。
右键单击该文件stdafx.cpp,选择属性,转到C/C++,预编译头,在第一个编辑框中选择“创建预编译头”。
如果您想完全禁用预编译头,请转到项目属性并选择“不使用预编译头”,并确保没有任何文件覆盖该设置为“使用预编译头”
顺便说一句,视觉辅助与它无关。事实上,视觉辅助永远不会干扰编译。
| 归档时间: |
|
| 查看次数: |
6196 次 |
| 最近记录: |