getting compile errors from IFS samples

I’m trying to build samples from the IFS and getting various compile
errors. Example errors:

  1. InterlockedCompareExchange is used in different ways in the samples:

InterlockedCompareExchange( LONG *, LONG, LONG)

and

InterlockedCompareExchange( PVOID *, PVOID, PVOID)

The compiler is getting the latter definition from ntifs.h and treating
the first use as an error. (I had to locate ntifs.h in one place and
move it to \filesys\inc to get past a missing #include file error.)

The winbase.h and wdm.h files also define this symbol inside #if to be
processor specific. The DDK help documents the function as accepting
long args.

  1. When I build fastfat, I get lots of error messages relating to type
    conversions and such. Looks like sloppy coding that VC++ 4.2 accepted
    without an error and VC++ 6 won’t accept.

  2. I had to locate some missing files and move some.

I’m using VC++ 6 and think I have the right setup. I’m compiling from a
W2000 DDK checked build window. What’s going on here?

Bill Hunt


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You left out a lot of required information. What version of the IFS Kit?
The NTIFS.H file is present in filesys\inc within the DDK\SRC subtree. If
it wasn’t in your case, I suggest you reinstall the IFS Kit. NT4 DDK first,
then IFS Kit for NT4. If you want W2K, install the W2K DDK in a new
directory and then the W2K IFS Kit into that directory.

Are you sure you have installed the SP5 for VC++ 6.0?

If you are talking about XP, I have no idea, but I know that the included
compiler is the only one approved for compiling the DDK & IFS Kit & all
drivers.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Bill Hunt
Sent: Tuesday, January 08, 2002 12:38 AM
To: File Systems Developers
Subject: [ntfsd] getting compile errors from IFS samples

I’m trying to build samples from the IFS and getting various compile
errors. Example errors:

  1. InterlockedCompareExchange is used in different ways in the samples:

InterlockedCompareExchange( LONG *, LONG, LONG)

and

InterlockedCompareExchange( PVOID *, PVOID, PVOID)

The compiler is getting the latter definition from ntifs.h and treating
the first use as an error. (I had to locate ntifs.h in one place and
move it to \filesys\inc to get past a missing #include file error.)

The winbase.h and wdm.h files also define this symbol inside #if to be
processor specific. The DDK help documents the function as accepting
long args.

  1. When I build fastfat, I get lots of error messages relating to type
    conversions and such. Looks like sloppy coding that VC++ 4.2 accepted
    without an error and VC++ 6 won’t accept.

  2. I had to locate some missing files and move some.

I’m using VC++ 6 and think I have the right setup. I’m compiling from a
W2000 DDK checked build window. What’s going on here?

Bill Hunt


You are currently subscribed to ntfsd as: xxxxx@yoshimuni.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com