我打开了一个VC工程, Release可以编译成功, 但是改为Debug调试时, 出现以下编译错误
--------------------Configuration: Win32 Debug--------------------
Compiling...
STDAFX.CPP
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(1519) : error C2146: syntax error : missing ';' before identifier 'PVOID'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(1519) : error C2501: '_inline' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winnt.h(1519) : fatal error C1004: unexpected end of file found
Error executing cl.exe.Kj4main.exe - 3 error(s)
-----------------------------------------------------------------------

解决方案 »

  1.   

    只能得出这样的结论:Debug模式下,有一个语句没有正确结束.
      

  2.   

    是否使用了什么编译设置,如引用了dll等,debug和release需要分别设置。
      

  3.   

    哦,把release和debug的环境配置成一样就行了,项目设置要程序配置。
      

  4.   

    可能VC不认识PVOID, 
    另外把inline去掉试试
      

  5.   

    winnt.h 是VC自己带的文件, 不能随便该吧.
      

  6.   

    搜索所有 _DEBUG
    看看其附近的代码有没问题!