[Win32utils-devel] [ANN] win32-changejournal 0.1.0 in CVS

Shashank Date sdate at everestkc.net
Sat Feb 5 12:44:01 EST 2005


Hi Park.

I was not able to compile this using free Visual Studio ++ (VC 7)
compiler. See attached transcript.
Thanks,
-- Shashank

Park Heesob wrote:

>Hi all,
>
>I committed win32-changenotify 0.3.0 to CVS.
>
>What is it?
>===========
> A class for monitoring events related to files and directories.
>  
>Synopsis
>========
> require "win32/changejournal"
> include Win32
> 
> # Indefinitely wait for a change in 'C:\' and any of its
> # subdirectories.  Print the file and action affected.
> 
> cj = ChangeJournal.new('C:\')
> cj.wait{ |info|
>  p info.file_name
>  p info.action
> }
> 
>Try and give some comments, please.
>
>Regards,
>
>Park Heesob
>
>_______________________________________________
>win32utils-devel mailing list
>win32utils-devel at rubyforge.org
>http://rubyforge.org/mailman/listinfo/win32utils-devel
>
>  
>


-------------- next part --------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\win32utils>setvc7.cmd

C:\win32utils>set PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WINNT\Microsoft.NET\Framework\v1.1.4322;C:\Program Files\Microsoft.NET\SDK\v1.1\Bin;C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;C:\Program Files\Microsoft SDK\Bin\Win64;C:\Program Files\Microsoft SDK\Bin;C:\bison\bin;c:\ruby\bin;

C:\win32utils>ruby makeall.rb

win32-changejournal:
-------------------------
creating Makefile
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
        cl -nologo -MD -Zi -O2b2xg- -G5 -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I.  -I. -I./.. -I./../missing -D_WIN32_WINNT=0x0501 -c -Tcchangejournal.c
changejournal.c
c:\win32utils\win32-changejournal\changejournal.h(47) : error C2039: 'FileNameOffset' : is not a member of 'USN_RECORD'
        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 identifier
changejournal.c(60) : error C2146: syntax error : missing ';' before identifier 'dujd'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(60) : error C2065: 'dujd' : undeclared identifier
changejournal.c(61) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(61) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(61) : error C2065: 'fOk' : undeclared identifier
changejournal.c(63) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(64) : error C2224: left of '.DeleteFlags' must have struct/union type
changejournal.c(65) : error C2065: 'FSCTL_DELETE_USN_JOURNAL' : undeclared identifier
changejournal.c(74) : error C2146: syntax error : missing ')' before identifier 'pUsnJournalData'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2143: syntax error : missing ')' before 'identifier'
changejournal.c(74) : error C2081: 'PUSN_JOURNAL_DATA' : name in formal parameter 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 header?)
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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(191) : error C2065: 'ujd' : undeclared identifier
changejournal.c(194) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(194) : error C2065: 'USN_DELETE_FLAG_DELETE' : undeclared identifier
changejournal.c(194) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
changejournal.c(280) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(285) : error C2065: 'ERROR_JOURNAL_DELETE_IN_PROGRESS' : undeclared identifier
changejournal.c(285) : error C2051: case expression not constant
changejournal.c(289) : error C2065: 'USN_DELETE_FLAG_NOTIFY' : undeclared identifier
changejournal.c(293) : error C2065: 'ERROR_JOURNAL_NOT_ACTIVE' : undeclared identifier
changejournal.c(293) : error C2051: case expression not constant
changejournal.c(316) : error C2224: left of '.FirstUsn' must have struct/union type
changejournal.c(316) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(385) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(386) : error C2275: 'DWORD' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(141) : see declaration of 'DWORD'
changejournal.c(386) : error C2146: syntax error : missing ';' before identifier 'dwTimeout'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2143: syntax error : missing ';' before 'identifier'
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 this 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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(387) : error C2065: 'rujd' : undeclared identifier
changejournal.c(388) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(388) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(402) : error C2440: '=' : cannot convert from 'READ_USN_JOURNAL_DATA' to 'int'
changejournal.c(403) : error C2224: left of '.BytesToWaitFor' must have struct/union type
changejournal.c(447) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(453) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(453) : error C2198: 'Delete' : too few arguments for call through pointer-to-function

C:\win32utils>cd win32-changejournal

C:\win32utils\win32-changejournal>dir *.cmd
 Volume in drive C has no label.
 Volume Serial Number is 6B0E-6992

 Directory of C:\win32utils\win32-changejournal

02/05/2005  11:04 AM               191 cmp_cn.cmd
               1 File(s)            191 bytes
               0 Dir(s)   7,408,238,592 bytes free

C:\win32utils\win32-changejournal>cmp_cn.cmd

C:\win32utils\win32-changejournal>cl -nologo -MD -Zi -O2b2xg- -G5 -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I./.. -I./../missing -D_WIN32_WINNT=0x0501 -c -Tcchangejournal.c changejournal.c
changejournal.c
c:\win32utils\win32-changejournal\changejournal.h(47) : error C2039: 'FileNameOffset' : is not a member of 'USN_RECORD'
        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 identifier
changejournal.c(60) : error C2146: syntax error : missing ';' before identifier 'dujd'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(60) : error C2065: 'dujd' : undeclared identifier
changejournal.c(61) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(61) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(61) : error C2065: 'fOk' : undeclared identifier
changejournal.c(63) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(64) : error C2224: left of '.DeleteFlags' must have struct/union type
changejournal.c(65) : error C2065: 'FSCTL_DELETE_USN_JOURNAL' : undeclared identifier
changejournal.c(74) : error C2146: syntax error : missing ')' before identifier 'pUsnJournalData'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2143: syntax error : missing ')' before 'identifier'
changejournal.c(74) : error C2081: 'PUSN_JOURNAL_DATA' : name in formal parameter 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 header?)
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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(191) : error C2065: 'ujd' : undeclared identifier
changejournal.c(194) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(194) : error C2065: 'USN_DELETE_FLAG_DELETE' : undeclared identifier
changejournal.c(194) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
changejournal.c(280) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(285) : error C2065: 'ERROR_JOURNAL_DELETE_IN_PROGRESS' : undeclared identifier
changejournal.c(285) : error C2051: case expression not constant
changejournal.c(289) : error C2065: 'USN_DELETE_FLAG_NOTIFY' : undeclared identifier
changejournal.c(293) : error C2065: 'ERROR_JOURNAL_NOT_ACTIVE' : undeclared identifier
changejournal.c(293) : error C2051: case expression not constant
changejournal.c(316) : error C2224: left of '.FirstUsn' must have struct/union type
changejournal.c(316) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(385) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(386) : error C2275: 'DWORD' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(141) : see declaration of 'DWORD'
changejournal.c(386) : error C2146: syntax error : missing ';' before identifier 'dwTimeout'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2143: syntax error : missing ';' before 'identifier'
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 this 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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(387) : error C2065: 'rujd' : undeclared identifier
changejournal.c(388) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(388) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(402) : error C2440: '=' : cannot convert from 'READ_USN_JOURNAL_DATA' to 'int'
changejournal.c(403) : error C2224: left of '.BytesToWaitFor' must have struct/union type
changejournal.c(447) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(453) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(453) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
changejournal.c
c:\win32utils\win32-changejournal\changejournal.h(47) : error C2039: 'FileNameOffset' : is not a member of 'USN_RECORD'
        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 identifier
changejournal.c(60) : error C2146: syntax error : missing ';' before identifier 'dujd'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(60) : error C2065: 'dujd' : undeclared identifier
changejournal.c(61) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(61) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(61) : error C2065: 'fOk' : undeclared identifier
changejournal.c(63) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(64) : error C2224: left of '.DeleteFlags' must have struct/union type
changejournal.c(65) : error C2065: 'FSCTL_DELETE_USN_JOURNAL' : undeclared identifier
changejournal.c(74) : error C2146: syntax error : missing ')' before identifier 'pUsnJournalData'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2143: syntax error : missing ')' before 'identifier'
changejournal.c(74) : error C2081: 'PUSN_JOURNAL_DATA' : name in formal parameter 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 header?)
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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(191) : error C2065: 'ujd' : undeclared identifier
changejournal.c(194) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(194) : error C2065: 'USN_DELETE_FLAG_DELETE' : undeclared identifier
changejournal.c(194) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
changejournal.c(280) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(285) : error C2065: 'ERROR_JOURNAL_DELETE_IN_PROGRESS' : undeclared identifier
changejournal.c(285) : error C2051: case expression not constant
changejournal.c(289) : error C2065: 'USN_DELETE_FLAG_NOTIFY' : undeclared identifier
changejournal.c(293) : error C2065: 'ERROR_JOURNAL_NOT_ACTIVE' : undeclared identifier
changejournal.c(293) : error C2051: case expression not constant
changejournal.c(316) : error C2224: left of '.FirstUsn' must have struct/union type
changejournal.c(316) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(385) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(386) : error C2275: 'DWORD' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(141) : see declaration of 'DWORD'
changejournal.c(386) : error C2146: syntax error : missing ';' before identifier 'dwTimeout'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2143: syntax error : missing ';' before 'identifier'
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 this 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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(387) : error C2065: 'rujd' : undeclared identifier
changejournal.c(388) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(388) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(402) : error C2440: '=' : cannot convert from 'READ_USN_JOURNAL_DATA' to 'int'
changejournal.c(403) : error C2224: left of '.BytesToWaitFor' must have struct/union type
changejournal.c(447) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(453) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(453) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
Generating Code...

C:\win32utils\win32-changejournal>
C:\win32utils\win32-changejournal>cmp_cn.cmd

C:\win32utils\win32-changejournal>cl -nologo -MD -Zi -O2b2xg- -G5 -Ic:/ruby/lib/ruby/1.8/i386-mswin32  -I. -I./.. -I./../missing -D_WIN32_WINNT=0x0501 -c -Tcchangejournal.c changejournal.c
changejournal.c
c:\win32utils\win32-changejournal\changejournal.h(47) : error C2039: 'FileNameOffset' : is not a member of 'USN_RECORD'
        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 identifier
changejournal.c(60) : error C2146: syntax error : missing ';' before identifier 'dujd'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(60) : error C2065: 'dujd' : undeclared identifier
changejournal.c(61) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(61) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(61) : error C2065: 'fOk' : undeclared identifier
changejournal.c(63) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(64) : error C2224: left of '.DeleteFlags' must have struct/union type
changejournal.c(65) : error C2065: 'FSCTL_DELETE_USN_JOURNAL' : undeclared identifier
changejournal.c(74) : error C2146: syntax error : missing ')' before identifier 'pUsnJournalData'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2143: syntax error : missing ')' before 'identifier'
changejournal.c(74) : error C2081: 'PUSN_JOURNAL_DATA' : name in formal parameter 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 header?)
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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(191) : error C2065: 'ujd' : undeclared identifier
changejournal.c(194) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(194) : error C2065: 'USN_DELETE_FLAG_DELETE' : undeclared identifier
changejournal.c(194) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
changejournal.c(280) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(285) : error C2065: 'ERROR_JOURNAL_DELETE_IN_PROGRESS' : undeclared identifier
changejournal.c(285) : error C2051: case expression not constant
changejournal.c(289) : error C2065: 'USN_DELETE_FLAG_NOTIFY' : undeclared identifier
changejournal.c(293) : error C2065: 'ERROR_JOURNAL_NOT_ACTIVE' : undeclared identifier
changejournal.c(293) : error C2051: case expression not constant
changejournal.c(316) : error C2224: left of '.FirstUsn' must have struct/union type
changejournal.c(316) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(385) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(386) : error C2275: 'DWORD' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(141) : see declaration of 'DWORD'
changejournal.c(386) : error C2146: syntax error : missing ';' before identifier 'dwTimeout'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2143: syntax error : missing ';' before 'identifier'
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 this 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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(387) : error C2065: 'rujd' : undeclared identifier
changejournal.c(388) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(388) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(402) : error C2440: '=' : cannot convert from 'READ_USN_JOURNAL_DATA' to 'int'
changejournal.c(403) : error C2224: left of '.BytesToWaitFor' must have struct/union type
changejournal.c(447) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(453) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(453) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
changejournal.c
c:\win32utils\win32-changejournal\changejournal.h(47) : error C2039: 'FileNameOffset' : is not a member of 'USN_RECORD'
        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 identifier
changejournal.c(60) : error C2146: syntax error : missing ';' before identifier 'dujd'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(60) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(60) : error C2065: 'dujd' : undeclared identifier
changejournal.c(61) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(61) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(61) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(61) : error C2065: 'fOk' : undeclared identifier
changejournal.c(63) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(64) : error C2224: left of '.DeleteFlags' must have struct/union type
changejournal.c(65) : error C2065: 'FSCTL_DELETE_USN_JOURNAL' : undeclared identifier
changejournal.c(74) : error C2146: syntax error : missing ')' before identifier 'pUsnJournalData'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(74) : error C2143: syntax error : missing ')' before 'identifier'
changejournal.c(74) : error C2081: 'PUSN_JOURNAL_DATA' : name in formal parameter 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 header?)
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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(191) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(191) : error C2065: 'ujd' : undeclared identifier
changejournal.c(194) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(194) : error C2065: 'USN_DELETE_FLAG_DELETE' : undeclared identifier
changejournal.c(194) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
changejournal.c(280) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(280) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(285) : error C2065: 'ERROR_JOURNAL_DELETE_IN_PROGRESS' : undeclared identifier
changejournal.c(285) : error C2051: case expression not constant
changejournal.c(289) : error C2065: 'USN_DELETE_FLAG_NOTIFY' : undeclared identifier
changejournal.c(293) : error C2065: 'ERROR_JOURNAL_NOT_ACTIVE' : undeclared identifier
changejournal.c(293) : error C2051: case expression not constant
changejournal.c(316) : error C2224: left of '.FirstUsn' must have struct/union type
changejournal.c(316) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(385) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(385) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(386) : error C2275: 'DWORD' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(141) : see declaration of 'DWORD'
changejournal.c(386) : error C2146: syntax error : missing ';' before identifier 'dwTimeout'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(386) : error C2143: syntax error : missing ';' before 'identifier'
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 this 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 C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(387) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(387) : error C2065: 'rujd' : undeclared identifier
changejournal.c(388) : error C2275: 'BOOL' : illegal use of this type as an expression
        C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDEF.H(142) : see declaration of 'BOOL'
changejournal.c(388) : error C2146: syntax error : missing ';' before identifier 'fOk'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(388) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(402) : error C2440: '=' : cannot convert from 'READ_USN_JOURNAL_DATA' to 'int'
changejournal.c(403) : error C2224: left of '.BytesToWaitFor' must have struct/union type
changejournal.c(447) : error C2146: syntax error : missing ';' before identifier 'ujd'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
changejournal.c(447) : error C2143: syntax error : missing ';' before 'identifier'
changejournal.c(453) : error C2224: left of '.UsnJournalID' must have struct/union type
changejournal.c(453) : error C2198: 'Delete' : too few arguments for call through pointer-to-function
Generating Code...

C:\win32utils\win32-changejournal>


More information about the win32utils-devel mailing list