How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it while using ddbuild?
Thanks,
–Jeremy

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it
while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Because when I fix the warning (which gets treated as an error) “warning C4995: ‘swprintf’: name was marked as #pragma deprecated” by using swprintf_s instead, I get this error: “error C3861: ‘swprintf_s’: identifier not found, even with argument-dependent lookup” even though <stdio.h> is included at the top of my file. I’ve got a thread going about it over on MSDN (http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e81af1cb-89fe-4728-863d-962c026989ef/), but no one seems to have an answer.

–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 1:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it
while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net
To unsubscribe send a blank email to xxxxx@lists.osr.com</stdio.h>

Also, the documentation for lots of things in this realm is hard to
extract useful information from. You’re going to have to get used to
trying to find the answers to some questions yourself. I’m not saying
you haven’t looked, but perhaps demonstrating a little initiative in
your emails instead of asking “How do I X?” and “Why hasn’t anybody who
isn’t paid to contribute to these discussions, and might have been
asleep for the last 6.5 hours because they live on the other side of the
planet responded yet.”

I mean, surely sometime during the last 6.5 hours you’ve tried a couple
things that haven’t worked, right? A more useful followup to your
original question might be something like “-i doesn’t do what I want it
to, what else should I try?”. To which somebody who really knows the
ins and outs of build (i.e. not me) might reply “-i isn’t for that,
instead you want -Wno-error”.

The other benefit to typing up a fully thought-out question to the
mailing list is you’ll frequently realize “oh I haven’t tried this”, and
then make a little more progress. Except for those times when you don’t
and somebody points out that maybe you should enable driver verifier at
the very least :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 4:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I
do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

Incidentally, there is a pragma that you can use to disable specific
warnings. Even if you get the compiler to not treat errors as warnings,
you might want to use it so that you don’t get a bunch of spew when you
build.

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Because when I fix the warning (which gets treated as an error) “warning
C4995: ‘swprintf’: name was marked as #pragma deprecated” by using
swprintf_s instead, I get this error: “error C3861: ‘swprintf_s’:
identifier not found, even with argument-dependent lookup” even though
<stdio.h> is included at the top of my file. I’ve got a thread going
about it over on MSDN
(http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e81af1c
b-89fe-4728-863d-962c026989ef/), but no one seems to have an answer.

–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 1:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I
do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</stdio.h>

You’re right, in that during the last 6.5 hours, I did try a number of things, but none of them worked. I tried adding “TreatWarningsAsErrors=0” to my project.mk file, but that had no effect.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:19 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Also, the documentation for lots of things in this realm is hard to
extract useful information from. You’re going to have to get used to
trying to find the answers to some questions yourself. I’m not saying
you haven’t looked, but perhaps demonstrating a little initiative in
your emails instead of asking “How do I X?” and “Why hasn’t anybody who
isn’t paid to contribute to these discussions, and might have been
asleep for the last 6.5 hours because they live on the other side of the
planet responded yet.”

I mean, surely sometime during the last 6.5 hours you’ve tried a couple
things that haven’t worked, right? A more useful followup to your
original question might be something like “-i doesn’t do what I want it
to, what else should I try?”. To which somebody who really knows the
ins and outs of build (i.e. not me) might reply “-i isn’t for that,
instead you want -Wno-error”.

The other benefit to typing up a fully thought-out question to the
mailing list is you’ll frequently realize “oh I haven’t tried this”, and
then make a little more progress. Except for those times when you don’t
and somebody points out that maybe you should enable driver verifier at
the very least :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 4:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I
do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Use RtlStringCchPrintf instead of swprintf.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Because when I fix the warning (which gets treated as an error) “warning
C4995: ‘swprintf’: name was marked as #pragma deprecated” by using
swprintf_s instead, I get this error: “error C3861: ‘swprintf_s’: identifier
not found, even with argument-dependent lookup” even though <stdio.h> is
included at the top of my file. I’ve got a thread going about it over on
MSDN
(http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e81af1cb-89
fe-4728-863d-962c026989ef/), but no one seems to have an answer.

–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 1:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it
while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</stdio.h>

This may be a silly question on my part, but what exactly are you trying
to build here? A quick check tells me that I might not be the only
person wondering this:

C:\WINDDK\6000\src>find . -iname project.mk
.\hid\firefly\shared\project.mk

C:\WINDDK\6000\src>find . -iname sources -type f | wc -l
326

C:\WINDDK\6000\src>

And by the way, have you tried -i in the flags for build.exe?

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:26 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

You’re right, in that during the last 6.5 hours, I did try a number of
things, but none of them worked. I tried adding
“TreatWarningsAsErrors=0” to my project.mk file, but that had no effect.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:19 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Also, the documentation for lots of things in this realm is hard to
extract useful information from. You’re going to have to get used to
trying to find the answers to some questions yourself. I’m not saying
you haven’t looked, but perhaps demonstrating a little initiative in
your emails instead of asking “How do I X?” and “Why hasn’t anybody who
isn’t paid to contribute to these discussions, and might have been
asleep for the last 6.5 hours because they live on the other side of the
planet responded yet.”

I mean, surely sometime during the last 6.5 hours you’ve tried a couple
things that haven’t worked, right? A more useful followup to your
original question might be something like “-i doesn’t do what I want it
to, what else should I try?”. To which somebody who really knows the
ins and outs of build (i.e. not me) might reply “-i isn’t for that,
instead you want -Wno-error”.

The other benefit to typing up a fully thought-out question to the
mailing list is you’ll frequently realize “oh I haven’t tried this”, and
then make a little more progress. Except for those times when you don’t
and somebody points out that maybe you should enable driver verifier at
the very least :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 4:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I
do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Well obviously, I’m trying to build a file system driver. And no, I haven’t tried add -I, because I can’t find where ddkbuild calls build.exe…
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:36 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

This may be a silly question on my part, but what exactly are you trying
to build here? A quick check tells me that I might not be the only
person wondering this:

C:\WINDDK\6000\src>find . -iname project.mk
.\hid\firefly\shared\project.mk

C:\WINDDK\6000\src>find . -iname sources -type f | wc -l
326

C:\WINDDK\6000\src>

And by the way, have you tried -i in the flags for build.exe?

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:26 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

You’re right, in that during the last 6.5 hours, I did try a number of
things, but none of them worked. I tried adding
“TreatWarningsAsErrors=0” to my project.mk file, but that had no effect.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:19 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Also, the documentation for lots of things in this realm is hard to
extract useful information from. You’re going to have to get used to
trying to find the answers to some questions yourself. I’m not saying
you haven’t looked, but perhaps demonstrating a little initiative in
your emails instead of asking “How do I X?” and “Why hasn’t anybody who
isn’t paid to contribute to these discussions, and might have been
asleep for the last 6.5 hours because they live on the other side of the
planet responded yet.”

I mean, surely sometime during the last 6.5 hours you’ve tried a couple
things that haven’t worked, right? A more useful followup to your
original question might be something like “-i doesn’t do what I want it
to, what else should I try?”. To which somebody who really knows the
ins and outs of build (i.e. not me) might reply “-i isn’t for that,
instead you want -Wno-error”.

The other benefit to typing up a fully thought-out question to the
mailing list is you’ll frequently realize “oh I haven’t tried this”, and
then make a little more progress. Except for those times when you don’t
and somebody points out that maybe you should enable driver verifier at
the very least :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 4:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I
do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

I tried that, but now the compiler is complaining " error C2065: ‘PEXCEPTION_ROUTINE’ : undeclared identifier". It is being used in ntdef.h. I searched the DDK and the Visual Studio include directories and could not find where it is defined.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 2:34 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Use RtlStringCchPrintf instead of swprintf.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Because when I fix the warning (which gets treated as an error) “warning
C4995: ‘swprintf’: name was marked as #pragma deprecated” by using
swprintf_s instead, I get this error: “error C3861: ‘swprintf_s’: identifier
not found, even with argument-dependent lookup” even though <stdio.h> is
included at the top of my file. I’ve got a thread going about it over on
MSDN
(http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e81af1cb-89
fe-4728-863d-962c026989ef/), but no one seems to have an answer.

–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 1:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it
while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net
To unsubscribe send a blank email to xxxxx@lists.osr.com</stdio.h>

Which version of the WDK are you using?
The Visual Studio include directories are not used by the WDK.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:55 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

I tried that, but now the compiler is complaining " error C2065:
‘PEXCEPTION_ROUTINE’ : undeclared identifier". It is being used in ntdef.h.
I searched the DDK and the Visual Studio include directories and could not
find where it is defined.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 2:34 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Use RtlStringCchPrintf instead of swprintf.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Because when I fix the warning (which gets treated as an error) “warning
C4995: ‘swprintf’: name was marked as #pragma deprecated” by using
swprintf_s instead, I get this error: “error C3861: ‘swprintf_s’: identifier
not found, even with argument-dependent lookup” even though <stdio.h> is
included at the top of my file. I’ve got a thread going about it over on
MSDN
(http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e81af1cb-89
fe-4728-863d-962c026989ef/), but no one seems to have an answer.

–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 1:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it
while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</stdio.h>

I’m using version 6001.18001 of the WinDDK.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 3:05 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Which version of the WDK are you using?
The Visual Studio include directories are not used by the WDK.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:55 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

I tried that, but now the compiler is complaining " error C2065:
‘PEXCEPTION_ROUTINE’ : undeclared identifier". It is being used in ntdef.h.
I searched the DDK and the Visual Studio include directories and could not
find where it is defined.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 2:34 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Use RtlStringCchPrintf instead of swprintf.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Because when I fix the warning (which gets treated as an error) “warning
C4995: ‘swprintf’: name was marked as #pragma deprecated” by using
swprintf_s instead, I get this error: “error C3861: ‘swprintf_s’: identifier
not found, even with argument-dependent lookup” even though <stdio.h> is
included at the top of my file. I’ve got a thread going about it over on
MSDN
(http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/e81af1cb-89
fe-4728-863d-962c026989ef/), but no one seems to have an answer.

–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 1:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it
while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net
To unsubscribe send a blank email to xxxxx@lists.osr.com</stdio.h>

Yeah, with a cursory check, I can’t find that either. But if I were
having problems building my stuff, the last thing I’d want to do is
monkey around with an 1100 line batch file somebody else wrote.

Try running ddkbuild bare, no options, nothing. This will dump the
usage where you’ll see that you can pass it flags that it will
subsequently pass to build.exe. Then go and look up the flags on msdn.
Where you might see the -i flag I’ve been going on about. As it
happens, I’ve got 2 warnings in my driver that aren’t worth fixing, and
I’m not seeing the behavior you’re talking about. For what it’s worth,
I’m using -cZ as the flags that get passed to build.exe.

Bill might be on the right track about DDK version though (or something
else is really hosed up). It sounds suspicious that PEXCEPTION_ROUTINE
causes an undeclared identifier error. The only instance of it in
ntdef.h that I see is where it’s being typedef’ed, so I’m a little fuzzy
on what’s going on.

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Well obviously, I’m trying to build a file system driver. And no, I
haven’t tried add -I, because I can’t find where ddkbuild calls
build.exe…
–Jeremy

Instead of ddkbuild use the WDK to set the build environment and run build.
I have used The RtlString functions without any problems.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 6:13 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Yeah, with a cursory check, I can’t find that either. But if I were having
problems building my stuff, the last thing I’d want to do is monkey around
with an 1100 line batch file somebody else wrote.

Try running ddkbuild bare, no options, nothing. This will dump the usage
where you’ll see that you can pass it flags that it will subsequently pass
to build.exe. Then go and look up the flags on msdn.
Where you might see the -i flag I’ve been going on about. As it happens,
I’ve got 2 warnings in my driver that aren’t worth fixing, and I’m not
seeing the behavior you’re talking about. For what it’s worth, I’m using
-cZ as the flags that get passed to build.exe.

Bill might be on the right track about DDK version though (or something else
is really hosed up). It sounds suspicious that PEXCEPTION_ROUTINE causes an
undeclared identifier error. The only instance of it in ntdef.h that I see
is where it’s being typedef’ed, so I’m a little fuzzy on what’s going on.

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Well obviously, I’m trying to build a file system driver. And no, I haven’t
tried add -I, because I can’t find where ddkbuild calls build.exe…
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Jeremy Chaney wrote:

Well obviously, I’m trying to build a file system driver. And no, I haven’t tried add -I, because I can’t find where ddkbuild calls build.exe…
–Jeremy

Hmm. Answer to the original question is, use MSC_WARNING_LEVEL macro in
your SOURCES (see details in the WDK docum) … but your last phrase
sounds worrying for me… what is the “ddkbuild” you have?
Is this ddkbuild.bat from OSR, or Hollistech, or Oliver Schneider?

To know what switch -i does to build.exe, just type build -?
in WDK command prompt window.

All this is very worrying what you wrote :frowning:

/* ok now I have a new question for kernel interviews: find where
ddkbuild calls build.exe :slight_smile: */

–pa

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:36 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

This may be a silly question on my part, but what exactly are you trying
to build here? A quick check tells me that I might not be the only
person wondering this:

C:\WINDDK\6000\src>find . -iname project.mk
.\hid\firefly\shared\project.mk

C:\WINDDK\6000\src>find . -iname sources -type f | wc -l
326

C:\WINDDK\6000\src>

And by the way, have you tried -i in the flags for build.exe?

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:26 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

You’re right, in that during the last 6.5 hours, I did try a number of
things, but none of them worked. I tried adding
“TreatWarningsAsErrors=0” to my project.mk file, but that had no effect.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:19 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Also, the documentation for lots of things in this realm is hard to
extract useful information from. You’re going to have to get used to
trying to find the answers to some questions yourself. I’m not saying
you haven’t looked, but perhaps demonstrating a little initiative in
your emails instead of asking “How do I X?” and “Why hasn’t anybody who
isn’t paid to contribute to these discussions, and might have been
asleep for the last 6.5 hours because they live on the other side of the
planet responded yet.”

I mean, surely sometime during the last 6.5 hours you’ve tried a couple
things that haven’t worked, right? A more useful followup to your
original question might be something like “-i doesn’t do what I want it
to, what else should I try?”. To which somebody who really knows the
ins and outs of build (i.e. not me) might reply “-i isn’t for that,
instead you want -Wno-error”.

The other benefit to typing up a fully thought-out question to the
mailing list is you’ll frequently realize “oh I haven’t tried this”, and
then make a little more progress. Except for those times when you don’t
and somebody points out that maybe you should enable driver verifier at
the very least :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 4:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I
do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

So where do I get the WDK? I’ve looked around on Microsoft’s website and can’t seem to find it. When I search “All Downloads” for “WDK” I get a link to the MSDN Library for VS SP1.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 3:28 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Instead of ddkbuild use the WDK to set the build environment and run build.
I have used The RtlString functions without any problems.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 6:13 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Yeah, with a cursory check, I can’t find that either. But if I were having
problems building my stuff, the last thing I’d want to do is monkey around
with an 1100 line batch file somebody else wrote.

Try running ddkbuild bare, no options, nothing. This will dump the usage
where you’ll see that you can pass it flags that it will subsequently pass
to build.exe. Then go and look up the flags on msdn.
Where you might see the -i flag I’ve been going on about. As it happens,
I’ve got 2 warnings in my driver that aren’t worth fixing, and I’m not
seeing the behavior you’re talking about. For what it’s worth, I’m using
-cZ as the flags that get passed to build.exe.

Bill might be on the right track about DDK version though (or something else
is really hosed up). It sounds suspicious that PEXCEPTION_ROUTINE causes an
undeclared identifier error. The only instance of it in ntdef.h that I see
is where it’s being typedef’ed, so I’m a little fuzzy on what’s going on.

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Well obviously, I’m trying to build a file system driver. And no, I haven’t
tried add -I, because I can’t find where ddkbuild calls build.exe…
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new fs
mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

I have ddkbuild from OSR.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Pavel A.
Sent: Monday, September 29, 2008 3:26 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] How do I set build flags using ddkbuild?

Jeremy Chaney wrote:

Well obviously, I’m trying to build a file system driver. And no, I haven’t tried add -I, because I can’t find where ddkbuild calls build.exe…
–Jeremy

Hmm. Answer to the original question is, use MSC_WARNING_LEVEL macro in
your SOURCES (see details in the WDK docum) … but your last phrase
sounds worrying for me… what is the “ddkbuild” you have?
Is this ddkbuild.bat from OSR, or Hollistech, or Oliver Schneider?

To know what switch -i does to build.exe, just type build -?
in WDK command prompt window.

All this is very worrying what you wrote :frowning:

/* ok now I have a new question for kernel interviews: find where
ddkbuild calls build.exe :slight_smile: */

–pa

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:36 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

This may be a silly question on my part, but what exactly are you trying
to build here? A quick check tells me that I might not be the only
person wondering this:

C:\WINDDK\6000\src>find . -iname project.mk
.\hid\firefly\shared\project.mk

C:\WINDDK\6000\src>find . -iname sources -type f | wc -l
326

C:\WINDDK\6000\src>

And by the way, have you tried -i in the flags for build.exe?

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:26 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

You’re right, in that during the last 6.5 hours, I did try a number of
things, but none of them worked. I tried adding
“TreatWarningsAsErrors=0” to my project.mk file, but that had no effect.
–Jeremy

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Eric Diven
Sent: Monday, September 29, 2008 2:19 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Also, the documentation for lots of things in this realm is hard to
extract useful information from. You’re going to have to get used to
trying to find the answers to some questions yourself. I’m not saying
you haven’t looked, but perhaps demonstrating a little initiative in
your emails instead of asking “How do I X?” and “Why hasn’t anybody who
isn’t paid to contribute to these discussions, and might have been
asleep for the last 6.5 hours because they live on the other side of the
planet responded yet.”

I mean, surely sometime during the last 6.5 hours you’ve tried a couple
things that haven’t worked, right? A more useful followup to your
original question might be something like “-i doesn’t do what I want it
to, what else should I try?”. To which somebody who really knows the
ins and outs of build (i.e. not me) might reply “-i isn’t for that,
instead you want -Wno-error”.

The other benefit to typing up a fully thought-out question to the
mailing list is you’ll frequently realize “oh I haven’t tried this”, and
then make a little more progress. Except for those times when you don’t
and somebody points out that maybe you should enable driver verifier at
the very least :wink:

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bill Wandel
Sent: Monday, September 29, 2008 4:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Why don’t you just fix the warnings?

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 4:43 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I
do it while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@edsiohio.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars (including our new
fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

Dear Eric,

Have you tried to type build -? with the current WDK?

Option -i is “ignore extraneous *dependency* warning messages” - not
relevant.
Option -I is “do not display thread index if multiprocessor build”. Not
relevant.

Perhaps what you meant was -w.

Regards,
–pa

Eric Diven wrote:

Yeah, with a cursory check, I can’t find that either. But if I were
having problems building my stuff, the last thing I’d want to do is
monkey around with an 1100 line batch file somebody else wrote.

Try running ddkbuild bare, no options, nothing. This will dump the
usage where you’ll see that you can pass it flags that it will
subsequently pass to build.exe. Then go and look up the flags on msdn.
Where you might see the -i flag I’ve been going on about. As it
happens, I’ve got 2 warnings in my driver that aren’t worth fixing, and
I’m not seeing the behavior you’re talking about. For what it’s worth,
I’m using -cZ as the flags that get passed to build.exe.

Bill might be on the right track about DDK version though (or something
else is really hosed up). It sounds suspicious that PEXCEPTION_ROUTINE
causes an undeclared identifier error. The only instance of it in
ntdef.h that I see is where it’s being typedef’ed, so I’m a little fuzzy
on what’s going on.

~Eric

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Monday, September 29, 2008 5:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] How do I set build flags using ddkbuild?

Well obviously, I’m trying to build a file system driver. And no, I
haven’t tried add -I, because I can’t find where ddkbuild calls
build.exe…
–Jeremy

Jeremy

Generaly speaking you’ll find that swprintf etc are at least frowned upon in
the kernel community. You could look at the kernel Rtl functions for unicode
strings which would be better received. I wonder if RtlUnicodeStringPrint or
similar would be better suited to your purpose.

You might also want to have a look at this site
http://www.catb.org/~esr/faqs/smart-questions.html

Good luck,
Lyndon

“Jeremy Chaney” wrote in message
news:xxxxx@ntfsd…
Hello? Anyone?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@telestream.net
Sent: Monday, September 29, 2008 10:18 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How do I set build flags using ddkbuild?

I want to turn off the “treat warnings as errors” switch, but how do I do it
while using ddbuild?
Thanks,
–Jeremy


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@telestream.net
To unsubscribe send a blank email to xxxxx@lists.osr.com