Are you sure that your environment is correct/unmodified? In particular, I
don’t see how %systemroot% could be ‘nonexistant’ in any correctly setup
system.
path contains nonexistant %systemroot%, removing
Although I don’t know if this is your specific problem, an incorrectly setup
build environment could definitely cause problems like this, and based on
what you’re showing below, all bets are off - nonstandard build environments
are just not something that can reasonably be debugged remotely.
Also, it’s a good idea to include ‘-c’ in your build command line, as
dependency tracking doesn’t work.
Good luck,
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@live.com
Sent: Saturday, March 26, 2011 11:53 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Compile Error (C1012)
Here is the log if you are at all interested anymore…
- Start >> All Programs >> Windows Driver Kits >> WDK 7600.16385.1>>Build
Environments>>Windows XP >> x86 Checked Build Env.
*************** START LOG ***************************
C:\My_Drivers>build -gZ
path contains nonexistant %systemroot%\system32, removing
path contains nonexistant %systemroot%, removing
path contains nonexistant %systemroot%\system32\wbem, removing
path contains nonexistant c:\program files\common files\roxio
shared\9.0\dllshar
ed, removing
path contains nonexistant c:\sheerpower, removing
path contains nonexistant c:\sheerpower\ars, removing
path contains nonexistant c:\sheerpower, removing
path contains nonexistant \sptools, removing
path contains nonexistant c:\progra~1\tieduc~1\ti-83p~1\utils, removing
path contains nonexistant c:\php\ext, removing
path contains nonexistant c:\hla, removing
path contains nonexistant c:\hla, removing
BUILD: Compile and Link for x86
BUILD: Start time: Sat Mar 26 23:44:22 2011
BUILD: Examining c:\my_drivers directory for files to compile.
c:\my_drivers Invalidating OACR warning log for ‘root:x86chk’
BUILD: Compiling and Linking c:\my_drivers directory
Configuring OACR for ‘root:x86chk’ -
_NT_TARGET_VERSION SET TO WINXP
Compiling - main.c
1>errors in directory c:\my_drivers
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(39) : error C2061:
syntax e
rror : identifier ‘HFILTER’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(39) : error C2059:
syntax e
rror : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(40) : error C2061:
syntax e
rror : identifier ‘HFILTER_INSTANCE’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(40) : error C2059:
syntax e
rror : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(41) : error C2061:
syntax e
rror : identifier ‘HFILTER_VOLUME’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(41) : error C2059:
syntax e
rror : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(51) : error C2143:
syntax e
rror : missing ‘)’ before ‘return’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(51) : error C2143:
syntax e
rror : missing ‘{’ before ‘return’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(51) : error C2059:
syntax e
rror : ‘return’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(51) : error C2059:
syntax e
rror : ‘)’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(52) : error C2143:
syntax e
rror : missing ‘{’ before ‘‘
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(122) : error C2016: C
requi
res that a struct or union has at least one member
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(122) : error C2061:
syntax
error : identifier ‘ULONG’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(124) : error C2061:
syntax
error : identifier ‘FrameID’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(124) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(126) : error C2061:
syntax
error : identifier ‘NumberOfInstances’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(126) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(128) : error C2061:
syntax
error : identifier ‘FilterNameLength’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(128) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(129) : error C2061:
syntax
error : identifier ‘FilterNameBuffer’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(129) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(129) : error C3409:
empty a
ttribute block is not allowed
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(129) : error C2143:
syntax
error : missing ‘]’ before ‘constant’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(131) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(145) : error C2016: C
requi
res that a struct or union has at least one member
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(145) : error C2061:
syntax
error : identifier ‘ULONG’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(151) : error C2061:
syntax
error : identifier ‘Flags’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(151) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(163) : error C2016: C
requi
res that a struct or union has at least one member
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(163) : error C2061:
syntax
error : identifier ‘ULONG’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(165) : error C2061:
syntax
error : identifier ‘NumberOfInstances’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(165) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(167) : error C2061:
syntax
error : identifier ‘FilterNameLength’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(167) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(168) : error C2061:
syntax
error : identifier ‘FilterNameBufferOffset’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(168) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(170) : error C2061:
syntax
error : identifier ‘FilterAltitudeLength’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(170) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(171) : error C2061:
syntax
error : identifier ‘FilterAltitudeBufferOffset’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(171) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(173) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(181) : error C2016: C
requi
res that a struct or union has at least one member
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(181) : error C2061:
syntax
error : identifier ‘USHORT’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(182) : error C2061:
syntax
error : identifier ‘FilterNameBufferOffset’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(182) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(184) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(186) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(188) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(289) : error C2016: C
requi
res that a struct or union has at least one member
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(289) : error C2061:
syntax
error : identifier ‘USHORT’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(295) : error C2061:
syntax
error : identifier ‘FilterVolumeName’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(295) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(295) : error C3409:
empty a
ttribute block is not allowed
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(295) : error C2143:
syntax
error : missing ‘]’ before ‘constant’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(297) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(372) : error C2143:
syntax
error : missing ‘)’ before ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(372) : error C2143:
syntax
error : missing ‘{’ before ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(372) : error C2059:
syntax
error : ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(381) : error C2143:
syntax
error : missing ‘)’ before ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(381) : error C2143:
syntax
error : missing ‘{’ before ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(381) : error C2059:
syntax
error : ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(393) : error C2143:
syntax
error : missing ‘)’ before ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(393) : error C2143:
syntax
error : missing ‘{’ before ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(393) : error C2059:
syntax
error : ‘sizeof’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(554) : error C2016: C
requi
res that a struct or union has at least one member
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(554) : error C2061:
syntax
error : identifier ‘ULONG’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(564) : error C2061:
syntax
error : identifier ‘MessageId’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(564) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(570) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(581) : error C2016: C
requi
res that a struct or union has at least one member
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(581) : error C2061:
syntax
error : identifier ‘NTSTATUS’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(590) : error C2061:
syntax
error : identifier ‘MessageId’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(590) : error C2059:
syntax
error : ‘;’
1>c:\winddk\7600.16385.1\inc\ddk\fltuserstructures.h(596) : error C2059:
syntax
error : ‘}’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(83) : error C2061: syntax error :
ide
ntifier ‘HRESULT’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(83) : error C2059: syntax error :
’;‘
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(85) : error C2061: syntax error :
ide
ntifier ‘FilterLoad’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(85) : error C2059: syntax error :
’;‘
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(86) : error C2146: syntax error :
mis
sing ‘)’ before identifier ‘LPCWSTR’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(86) : error C2061: syntax error :
ide
ntifier ‘LPCWSTR’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(87) : error C2059: syntax error :
’)‘
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(90) : error C2061: syntax error :
ide
ntifier ‘HRESULT’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(90) : error C2059: syntax error :
’;‘
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(92) : error C2061: syntax error :
ide
ntifier ‘FilterUnload’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(92) : error C2059: syntax error :
’;‘
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(93) : error C2146: syntax error :
mis
sing ‘)’ before identifier ‘LPCWSTR’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(93) : error C2061: syntax error :
ide
ntifier ‘LPCWSTR’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(94) : error C2059: syntax error :
’)'
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(108) : error C2061: syntax error
: id
entifier ‘HRESULT’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(108) : error C2059: syntax error
: ‘;
’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(110) : error C2061: syntax error
: id
entifier ‘FilterCreate’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(110) : error C2059: syntax error
: ‘;
’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(111) : error C2146: syntax error
: mi
ssing ‘)’ before identifier ‘LPCWSTR’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(111) : error C2061: syntax error
: id
entifier ‘LPCWSTR’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(112) : error C2146: syntax error
: mi
ssing ‘;’ before identifier ‘HFILTER’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(112) : error C2143: syntax error
: mi
ssing ‘{’ before '’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(113) : error C2059: syntax error
: ‘)
’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(116) : error C2061: syntax error
: id
entifier ‘WINAPI’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(116) : error C2059: syntax error
: ‘;
’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(118) : error C2146: syntax error
: mi
ssing ‘)’ before identifier ‘HFILTER’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(118) : error C2061: syntax error
: id
entifier ‘HFILTER’
1>c:\winddk\7600.16385.1\inc\ddk\fltuser.h(118) : error C1003: error count
excee
ds 100; stopping compilation
Linking Executable - objchk_wxp_x86\i386\wilh_chckd_build.sys
BUILD: Finish time: Sat Mar 26 23:44:23 2011
BUILD: Done
3 files compiled - 12 Warnings - 102 Errors
1 executable built -------------------------------------------> Why it
still builds, I don’t know.
C:\My_Drivers>
END LOG*****************
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer