--------------------Configuration: OsDll - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
OsDll.cpp
Generating Code...
Compiling...
stub_rtss.c
e:\work\osdll\stub\src\stub_rtss.c(148) : fatal error C1010: unexpected end of file while looking for precompiled header directive
stub_vos.c
e:\work\osdll\stub\src\stub_vos.c(49) : fatal error C1010: unexpected end of file while looking for precompiled header directive
stub_wueps.c
e:\work\osdll\stub\src\stub_wueps.c(116) : fatal error C1010: unexpected end of file while looking for precompiled header directive
stubcfgram.c
e:\work\osdll\stub\src\stubcfgram.c(70) : fatal error C1010: unexpected end of file while looking for precompiled header directive
stubcfgrom.c
e:\work\osdll\stub\src\stubcfgrom.c(72) : fatal error C1010: unexpected end of file while looking for precompiled header directive
stubcom.c
e:\work\osdll\stub\src\stubcom.c(707) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
Error executing cl.exe.OsDll.dll - 6 error(s), 0 warning(s)

解决方案 »

  1.   

    不会是忘了包含该头文件吧;
    去掉window.h头文件。
      

  2.   

    去掉window.h头文件还是一样的错误,个数内容没有任何变化
      

  3.   

    你那几个出错的文件都是类的实现代码吗?这样的话是需要包含stdafx.h头文件的
      

  4.   

    设置一下 Precompiled Headers吧
      

  5.   

    楼上,工程是VC建的,没有类,用的都是C语言,是一个dll的win32工程
      

  6.   

    回复人:Fibre() ( 二级(初级)) 信誉:100  2006-05-26 15:58:00  得分:0

    设置一下 Precompiled Headers吧这样设置就没有这种问题了,不知道什么原因,这些选项是作什么的呢?
      

  7.   

    包含stdafx.h,将扩展名改为cpp试试
      

  8.   

    预编译头文件可以加速cpp的编译速度
    把一些常用的头文件放在stdafx.h中,
    其他cpp包含这个stdafx.h就可以.
    如果选中了预编译头文件选项,
    就必须要包含stdafx.h头文件