Error C4430 Winnt.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or 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 Include winnt.h in my project up vote 0 down vote favorite 1 I am doing a small personal project involving printing out info about a PE file. I have read that most of the pe structure is already defined in winnt.h header. Upon including the winnt.h, and compiling the project i get the following error: #error : "No Target Architecture" I tried putting a define x86, it might have fixed the architecture problem, but there are even more compilation problems. For example: 1>c:\program files (x86)\windows kits\8.0\include\um\winnt.h(363): error C2146: syntax error : missing ';' before identifier 'WCHAR' 1>c:\program files (x86)\windows kits\8.0\include\um\winnt.h(363): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files (x86)\windows kits\8.0\include\um\winnt.h(367): error C2143: syntax error : missing ';' before '*' 1>c:\program files (x86)\windows kits\8.0\include\um\winnt.h(367): error C2040: 'PWSTR' : 'CONST' differs in levels of indirection from 'WCHAR *' c++ windows share|improve this question asked Oct 27 '13 at 12:31 Bartlomiej Lewandowski 5,13352142 'but there are even more compilation problems' Which ones in particular? –πάντα ῥεῖ Oct 27 '13 at 12:34 edited to include some other problems - there are over 230 –Bartlomiej Lewandowski Oct 27 '13 at 12:36 What compiler are you using - Visual C++ or something else? If you're using a Microsoft compiler then it should already set up all of the architecture etc. defines it's expecting, unless you're doing something strange! –Rup Oct 27 '13 at 12:39 I'm using the VS2012 compiler, and the only thing that I am doing is including the wint.h at th
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or 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 WinNt.h compile errors up vote 0 down vote favorite I http://stackoverflow.com/questions/19618059/include-winnt-h-in-my-project have a new C++ project in Eclipse. I had to add all the include paths manually, and I must have screwed something up. Here is my code: #include
Gunz Online help with conversion for vs2010(1.5 src) [winnt.h errors] help with conversion for vs2010(1.5 http://forum.ragezone.com/f311/help-conversion-vs2010-1-5-a-915922/ src) [winnt.h errors] Results 1 to 6 of 6 Thread 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 error c4430 errors with winnt.h? Spoiler: Code: Error 1 error C2146: syntax error : missing ';' before identifier 'PVOID64' C:\Program Files (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 - error c4430 winnt.h 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 (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