winnt.h problem
All these errors just appeared recently, and I dont know what I did that would cause this, because I was running openGL projects fine just recently. Can someone help?
c:\program files\microsoft visual studio\vc98\include\winnt.h(1093) : error C2143: syntax error : missing '';'' before ''*''
c:\program files\microsoft visual studio\vc98\include\winnt.h(1093) : error C2501: ''PKSPIN_LOCK'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(3132) : error C2146: syntax error : missing '';'' before identifier ''ExceptionInformation''
c:\program files\microsoft visual studio\vc98\include\winnt.h(3132) : error C2501: ''UINT_PTR'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(3132) : error C2501: ''ExceptionInformation'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4373) : error C2146: syntax error : missing '';'' before identifier ''PagedPoolLimit''
c:\program files\microsoft visual studio\vc98\include\winnt.h(4373) : error C2501: ''SIZE_T'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4373) : error C2501: ''PagedPoolLimit'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4374) : error C2146: syntax error : missing '';'' before identifier ''NonPagedPoolLimit''
c:\program files\microsoft visual studio\vc98\include\winnt.h(4374) : error C2501: ''SIZE_T'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4374) : error C2501: ''NonPagedPoolLimit'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4377) : error C2146: syntax error : missing '';'' before identifier ''PagefileLimit''
c:\program files\microsoft visual studio\vc98\include\winnt.h(4377) : error C2501: ''SIZE_T'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4377) : error C2501: ''PagefileLimit'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4409) : error C2146: syntax error : missing '';'' before identifier ''ProcessIdList''
c:\program files\microsoft visual studio\vc98\include\winnt.h(4409) : error C2501: ''UINT_PTR'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4409) : error C2501: ''ProcessIdList'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4563) : error C2146: syntax error : missing '';'' before identifier ''RegionSize''
c:\program files\microsoft visual studio\vc98\include\winnt.h(4563) : error C2501: ''SIZE_T'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(4563) : error C2501: ''RegionSize'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(6540) : error C2143: syntax error : missing '';'' before ''__stdcall''
c:\program files\microsoft visual studio\vc98\include\winnt.h(6540) : error C2501: ''SIZE_T'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\winnt.h(6544) : error C2061: syntax error : identifier ''SIZE_T''
Error executing cl.exe.
lesson5.exe - 23 error(s), 0 warning(s)
guess:
#include <windows.h> instead of <winnnt.h>, if you're doing the latter. internal windows headers depend on one another in intricate ways, and you can't just include one of them.
if this doesn't help:
post lines 1090-1095 and 3130-3135 marking where the error is.
[edited by - niyaw on February 11, 2003 1:31:05 AM]
#include <windows.h> instead of <winnnt.h>, if you're doing the latter. internal windows headers depend on one another in intricate ways, and you can't just include one of them.
if this doesn't help:
post lines 1090-1095 and 3130-3135 marking where the error is.
[edited by - niyaw on February 11, 2003 1:31:05 AM]
I don't think it is the problem of winnt.h. You don't have to
include it directly. There is maybe problem of wrong order of including files in lesson5.cpp. You should check the order, in which the .h are included, i mean windows.h, gl/gl.h, gl/glu.h and if anyone of them is not missing. Also there may be an missing ; in other include files, but not the standard ones (windows.h,...) Is that a NEHE lesson 5 ? If you haven't changed it too much, just download it once again to save time digging such a stupid error. If it does not help, just show .cpp source.
[edited by - koza on February 11, 2003 7:17:53 AM]
include it directly. There is maybe problem of wrong order of including files in lesson5.cpp. You should check the order, in which the .h are included, i mean windows.h, gl/gl.h, gl/glu.h and if anyone of them is not missing. Also there may be an missing ; in other include files, but not the standard ones (windows.h,...) Is that a NEHE lesson 5 ? If you haven't changed it too much, just download it once again to save time digging such a stupid error. If it does not help, just show .cpp source.
[edited by - koza on February 11, 2003 7:17:53 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement