Tech Support > Microsoft Windows > Drivers > [Q] Many problems installing DDK
[Q] Many problems installing DDK
Posted by Michael T. Peterson on September 19th, 2004


I'm having a great deal of difficulty getting the Windows Server 2003 DDK to
install correctly. I'd like to know if I'm doing something wrong and be set
straight.

(1) Attempting to build the samples in the kit fails, i.e., several of the
samples fail with [relatively minor] errors:

bin\x86\prefast\examples\pft-example2.cpp(17) : error C4700: local variable
'a' used without having been initialized
bin\x86\prefast\examples\pft-example1.cpp(14) : error C4700: local variable
'j' used without having been initialized

Granted, these are trivial but the docs say that the kit should build with
no warnings or errors. Hence, my uncertainty as to the quality of the
distribution.

(2) The setenv.bat file, on line #254, sets an environment variable as
follows:

set _LINK_=/Tmp

This causes the linker to fail because the file "/Tmp" can not be found.
What is the _LINK_ symbol used for? This symbol occurs nowhere else in any
makefile. *.def, or sources file. As far as I can tell, it's only purpose is
to make my life difficult [:-)

(3) Finally, when trying to link a simple user-mode application, the linker
fails with a LNK4099 message:

warning LNK4099: PDB 'mfcs42d.pdb' was not found with
'C:\local\sde\lib\winddk\3790\lib\wxp\i386\mfcs42d .lib'

However, mfcs42d.pdb is nowhere in the DDK tree and nowhere on my system.

Can someone help my out here? My dev and target platform are XP-Pro.

Cheers,

Michael


Posted by Mark Roddy on September 21st, 2004


In article <ehvC0TfnEHA.3396@tk2msftngp13.phx.gbl>, mtp1032@comcast.net
says...
The prefast examples are meant to be PREFAST EXAMPLES, as in they are
supposed to demonstrate prefast's coding-error detection capabilities.
You are complaining that these examples work as intended.

In what sense does this 'cause the linker to fail'? /TMP is indeed
passed as a command line argument to the linker, but while this appears
to be undocumented or even unsupported or perhaps just plain wrong, it
does not (at least on my system) cause linking to fail.

Note that \TMP would be a file path while /TMP is a command line
argument.


OK so what exactly did you put in your SOURCES file for this simple
user-mode application?


--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com


Similar Posts