VS 2005常见编译错误汇总
在开发 DS02H 项目中,总结了一些编译时较常遇到的编译错误
1. fatal error C1010: unexpected end of file while looking for precompiled header
directive
中文翻译:寻找预编译头文件路径时遇到了不该遇到的文件尾。
解决:一般是没有 #include "stdafx.h"
2. fatal error C1083: Cannot open include file: 'C⋯⋯ .h': No such file or
directory
中文翻译:不能打开包含文件 “C⋯⋯ .h”
解决:检查文件名是否有错。
3. error C2011: 'C ⋯⋯ ': 'class' type redefinition
中文翻译:类 “C⋯⋯”重定义。
解决:看是否重名了,去