Well, I just installed the vs 2012 RC, including the wdk. Converted some
sources ( build entities) to vs solutions, loaded into the IDE, and
compiled, still I see the problems - The include path (C:\Program Files
(x86)\Windows Kits\8.0\ ) is from a fresh install today, so something wrong
I think!
Also if I go to a new project and try to use boilerplate code using KMDF
template, then try to build - It is the same problem.
-pro
1>------ Build started: Project: toaster (Featured1\toaster), Configuration:
Win7 Debug Win32 ------
2>------ Build started: Project: toaster (Featured2\toaster), Configuration:
Win7 Debug Win32 ------
2> Microsoft (R) MOF Compiler Version 6.1.7600.16385
2> Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
2> Parsing MOF file: toaster.mof
1> Microsoft (R) MOF Compiler Version 6.1.7600.16385
1> Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
2> MOF file has been successfully parsed
2> Storing Binary MOF data in .\Win7Debug\x86\toaster.bmf
1> Parsing MOF file: toaster.mof
1> MOF file has been successfully parsed
1> Storing Binary MOF data in .\Win7Debug\x86\toaster.bmf
1> Done!
2> Done!
1> Microsoft (R) WDM Extensions To WMI MOF Checking Utility Version
1.50.0000
1> Copyright (c) Microsoft Corp. 1997-2000. All rights reserved.
1>
1> Binary mof file .\Win7Debug\x86\toaster.bmf expanded to 4318 bytes
2> Microsoft (R) WDM Extensions To WMI MOF Checking Utility Version
1.50.0000
2> Copyright (c) Microsoft Corp. 1997-2000. All rights reserved.
2>
2> Binary mof file .\Win7Debug\x86\toaster.bmf expanded to 4318 bytes
1> toaster.c
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\sal.h(2884): error
C2220: warning treated as error - no ‘object’ file generated
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\sal.h(2884):
warning C4005: ‘__useHeader’ : macro redefinition
1> c:\program files\microsoft
sdks\windows\v7.0\include\sal_supp.h(57) : see previous definition of
‘__useHeader’
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\sal.h(2885):
warning C4005: ‘__on_failure’ : macro redefinition
1> c:\program files\microsoft
sdks\windows\v7.0\include\specstrings_supp.h(77) : see previous definition
of ‘__on_failure’
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\ntdef.h(1892):
error C2054: expected ‘(’ to follow ‘IRQL_requires_same’
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\ntdef.h(1898):
error C2085: ‘EXCEPTION_ROUTINE’ : not in formal parameter list
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\ntdef.h(1900):
error C2085: ‘EXCEPTION_ROUTINE’ : not in formal parameter list
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\ntdef.h(1900):
error C2143: syntax error : missing ‘;’ before ‘*’
1>C:\Program Files (x86)\Windows Kits\8.0\Include\KM\wdm.h(10371): error
C2143: syntax error : missing ‘)’ before ‘constant’
1>C:\Program Files (x86)\Windows Kits\8.0\Include\KM\wdm.h(10371): error
C2143: syntax error : missing ‘{’ before ‘constant’
1>C:\Program Files (x86)\Windows Kits\8.0\Include\KM\wdm.h(10371): error
C2059: syntax error : ‘’
1>C:\Program Files (x86)\Windows Kits\8.0\Include\KM\wdm.h(10371): error
C2059: syntax error : ‘)’