[Win32utils-devel] win32-changejournal 0.2.0-1 compile error

Zach Dennis zdennis at mktec.com
Sun May 1 15:32:02 EDT 2005


I get the following error when trying to compile:
    win32-changejournal-0.2.0-1
on:
   Windows 2000, Service Pack 4
   Microsoft Visual Studio 6

Any ideas? Thanks,

Zach

----- ERROR BELOW-----

C:\unzipped\win32-changejournal-0.2.0-1\win32-changejournal-0.2.0>nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

         cl -nologo -MD -Zi -O2b2xg- -G6 -I. 
-Ic:/ruby/lib/ruby/1.8/i386-mswin32
-Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I.  -I. -I./.. -I./../missing 
-D_WIN32_WINN
T=0x0500 -c -Tcchangejournal.c
changejournal.c
changejournal.h(49) : error C2039: 'FileNameOffset' : is not a member of 
'USN_RE
CORD'
         C:\Program Files\Microsoft Visual 
Studio\VC98\include\winioctl.h(1895) :
  see declaration of 'USN_RECORD'
changejournal.c(60) : error C2065: 'DELETE_USN_JOURNAL_DATA' : 
undeclared identi
fier
changejournal.c(60) : error C2146: syntax error : missing ';' before 
identifier
'dujd'
changejournal.c(60) : error C2065: 'dujd' : undeclared identifier
changejournal.c(61) : error C2275: 'BOOL' : illegal use of this type as 
an expre
ssion
         C:\Program Files\Microsoft Visual 
Studio\VC98\include\windef.h(142) : se
e declaration of 'BOOL'
changejournal.c(61) : error C2146: syntax error : missing ';' before 
identifier
'fOk'
changejournal.c(61) : error C2065: 'fOk' : undeclared identifier
changejournal.c(63) : error C2224: left of '.UsnJournalID' must have 
struct/unio
n type
changejournal.c(64) : error C2224: left of '.DeleteFlags' must have 
struct/union
  type
changejournal.c(65) : error C2065: 'FSCTL_DELETE_USN_JOURNAL' : 
undeclared ident
ifier
changejournal.c(74) : error C2146: syntax error : missing ')' before 
identifier
'pUsnJournalData'
changejournal.c(74) : error C2081: 'PUSN_JOURNAL_DATA' : name in formal 
paramete
r list illegal
changejournal.c(74) : error C2061: syntax error : identifier 
'pUsnJournalData'
changejournal.c(74) : error C2059: syntax error : ';'
changejournal.c(74) : error C2059: syntax error : ')'
changejournal.c(74) : error C2449: found '{' at file scope (missing 
function hea
der?)
changejournal.c(83) : error C2059: syntax error : '}'
changejournal.c(191) : error C2065: 'USN_JOURNAL_DATA' : undeclared 
identifier
changejournal.c(191) : error C2146: syntax error : missing ';' before 
identifier
  'ujd'
changejournal.c(191) : error C2065: 'ujd' : undeclared identifier
changejournal.c(194) : error C2224: left of '.UsnJournalID' must have 
struct/uni
on type
changejournal.c(194) : error C2065: 'USN_DELETE_FLAG_DELETE' : 
undeclared identi
fier
changejournal.c(194) : error C2198: 'Delete' : too few actual parameters
changejournal.c(280) : error C2146: syntax error : missing ';' before 
identifier
  'ujd'
changejournal.c(285) : error C2065: 'ERROR_JOURNAL_DELETE_IN_PROGRESS' : 
undecla
red identifier
changejournal.c(285) : error C2051: case expression not constant
changejournal.c(289) : error C2065: 'USN_DELETE_FLAG_NOTIFY' : 
undeclared identi
fier
changejournal.c(293) : error C2065: 'ERROR_JOURNAL_NOT_ACTIVE' : 
undeclared iden
tifier
changejournal.c(293) : error C2051: case expression not constant
changejournal.c(316) : error C2224: left of '.FirstUsn' must have 
struct/union t
ype
changejournal.c(316) : error C2224: left of '.UsnJournalID' must have 
struct/uni
on type
changejournal.c(385) : error C2146: syntax error : missing ';' before 
identifier
  'ujd'
changejournal.c(386) : error C2275: 'DWORD' : illegal use of this type 
as an exp
ression
         C:\Program Files\Microsoft Visual 
Studio\VC98\include\windef.h(141) : se
e declaration of 'DWORD'
changejournal.c(386) : error C2146: syntax error : missing ';' before 
identifier
  'dwTimeout'
changejournal.c(386) : error C2065: 'dwTimeout' : undeclared identifier
changejournal.c(386) : error C2065: 'dwWait' : undeclared identifier
changejournal.c(387) : error C2275: 'READ_USN_JOURNAL_DATA' : illegal 
use of thi
s type as an expression
         C:\Program Files\Microsoft Visual 
Studio\VC98\include\winioctl.h(1881) :
  see declaration of 'READ_USN_JOURNAL_DATA'
changejournal.c(387) : error C2146: syntax error : missing ';' before 
identifier
  'rujd'
changejournal.c(387) : error C2065: 'rujd' : undeclared identifier
changejournal.c(388) : error C2275: 'BOOL' : illegal use of this type as 
an expr
ession
         C:\Program Files\Microsoft Visual 
Studio\VC98\include\windef.h(142) : se
e declaration of 'BOOL'
changejournal.c(388) : error C2146: syntax error : missing ';' before 
identifier
  'fOk'
changejournal.c(402) : error C2115: '=' : incompatible types
changejournal.c(403) : error C2224: left of '.BytesToWaitFor' must have 
struct/u
nion type
changejournal.c(445) : error C2146: syntax error : missing ';' before 
identifier
  'ujd'
changejournal.c(451) : error C2224: left of '.UsnJournalID' must have 
struct/uni
on type
changejournal.c(451) : error C2198: 'Delete' : too few actual parameters
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.


More information about the win32utils-devel mailing list