Error C2146 Pvoid64
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you pvoid64 undefined might have Meta Discuss the workings and policies of this winnt.h errors site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Pointer_64
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up syntax error : missing ';' before identifier 'PVOID64' when compiling winnt.h up vote 7 down vote favorite 1 I've recently got the source-code on a application. When im trying to build the solution, I get an error in all parts where winnt.h is included. The error codes differs a bit, but they always point to these lines in winnt.h: typedef void *PVOID; typedef void * POINTER_64 PVOID64; and struct { DWORD crc; BYTE rgbReserved[14]; } CRC; So, what could be the cause of this? winnt.h is a standard header and has not been modified. Does it has something to do with me using VS 2010, or me using 64-bit windows? or is it some sort of configuration which is needed? EDIT: Here's the exact error-codes: 1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(290): error C2146: syntax error : missing ';' before identifier 'PVOID64' 1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C2146: syntax error : missing ';' before identifier 'Buffer' 1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C4430
Search Go to Page... Thread Tools Search this Thread Rate Thread #1 01-Jul-2005, 16:32 Error Junior Member Join Date: May 2005 Posts: 42 Error C2146: syntax error : missing ';' before identifier 'PVOID64' When I compile a program with CPP / C++ / C Code:
#includeI get the following errors from the winnt.h file. Code: c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax http://stackoverflow.com/questions/9923628/syntax-error-missing-before-identifier-pvoid64-when-compiling-winnt-h error : missing ';' before identifier 'PVOID64' c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5932) : error C2146: syntax error : missing ';' before identifier 'Buffer' c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5932) : error C4430: missing type specifier https://www.gidforums.com/t-6226.html - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5932) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Does anyone have a clue how to fix this? #2 02-Jul-2005, 02:35 maprich Member Join Date: May 2005 Posts: 163 Try to find patches and updates for Visual Studio 8 from msdn. OREdit the file winnt.h yourself but be careful. Better you backup the file first. You can see that the error message complains first about missing ';' before identifier 'PVOID64' at line 222 in the file "c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h" so you can go and edit it but only after you have backup of the original file so you can restore it if the editing creates more problems than it solves. It seems that keyword "default-int" should be defined somewhere. You can change it to plain "int" like the compiler suggests but it may also c
Gunz Online help with conversion for vs2010(1.5 src) [winnt.h errors] help with conversion for vs2010(1.5 src) [winnt.h errors] Results 1 to 6 of 6 Thread http://forum.ragezone.com/f311/help-conversion-vs2010-1-5-a-915922/ Tools Show Printable Version Email this Page… 07-03-13 #1 Kahazard View Profile View Forum Posts Gift Subscription Hardcore Member MemberRank Oct 2011 Join Date 126Posts help with conversion for vs2010(1.5 src) [winnt.h errors] RaGEZONE Recommends Could anyone help me to solve these errors with winnt.h? Spoiler: Code: Error 1 error C2146: syntax error : missing ';' before identifier 'PVOID64' C:\Program Files error c2146 (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 290 1 RealSound Error 2 error C2146: syntax error : missing ';' before identifier 'PVOID64' C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 290 1 RealSpace2 Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 290 1 RealSpace2 Error 4 error C2146: syntax error : missing ';' before identifier 'PVOID64' C:\Program Files error c2146 pvoid64 (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 290 1 CSCommon Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 290 1 CSCommon Error 6 error C2146: syntax error : missing ';' before identifier 'Buffer' C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 8992 1 CSCommon Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 8992 1 CSCommon Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 8992 1 CSCommon Error 9 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 290 1 RealSound Error 10 error C2146: syntax error : missing ';' before identifier 'Buffer' C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 8992 1 RealSpace2 Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 8992 1 RealSpace2 Error 12 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h 8992 1 RealSpace2 Er