c++调试错误

来源:百度知道 编辑:UC知道 时间:2024/09/28 08:44:02
Compiling...
jk.cpp
d:\msdev98\myprojects\jf\jk.cpp(312) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.

jf.exe - 1 error(s), 0 warning(s)
这串英语说什么东西,哪里错误,感觉我的程序应该对的

一般是带#号的条件语句#ifdef ... #endif,#if !defined....#endif 等没有配对引起的错误.例如前面多了#if或后面少了#endif .
--------------------------
这是配对的:
#if !defined......
...
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
...
...
#endif
---------------------------

这串英语说的就是找这类东西时,找到文件结束还没找到,造成"致命性错误" C1010.