If you are having problem
building your Windows NT DDK sample code, you will want
to verify and make sure the following steps are taken
care of:
- Did
you install the Win 32 SDK first ?
- Did
you install the Windows NT DDK secondly?
- Did
you install and use MS-Visual C++ 2.1 or
higher? (Do not
use C 7.0)
- Did
you double-click the "Checked-Build
Environment" or "Free-build
Environment" icons under your
"Windows NT DDK program group"?
You must select the Free
or Checked build environment under your Windows NT DDK
program group. A build environment will be set and ready
to compile your sample code. You must CD into the sample
code directory before typing the following command:
C:\DDK\SRC\GENERAL\PORTIO > BUILD -CEF
After your build, check
and make sure there is no file "build.err". If
there is, then it means your got one or more errors from
your build. You output file (or DLL) should be located in
your DDK\LIB\<Processor
type (i386) etc..>\Free
Where Free is the type of build output you
wish to build.
If you get an error from
your build, check your build environment by typing the
following command:
Set >Myenv.txt {
This will save your environment to a file} you will want
to compare it against our environment as follow:
BASEDIR=D:\DDK
BUILD_DEFAULT=-ei -nmake -i
BUILD_DEFAULT_TARGETS=-386
BUILD_MAKE_PROGRAM=nmake.exe
COMPUTERNAME=KevinJon1
ComSpec=C:\WINNT\system32\cmd.exe
Cpu=i386
C_DEFINES=-D_IDWBUILD -DRDRDBG -DSRVDBG
DDKBUILDENV=checked
DDKDRIVE=D:
dircmd=/l/d/ogn
HOMEDRIVE=C:
HOMEPATH=\
include=D:\MSTOOLS\include;D:\MSTOOLS\include;c:\msdev\include;
init=d:\misc\init
lib=D:\MSTOOLS\lib;D:\MSTOOLS\lib;c:\msdev\lib;
MSC_OPTIMIZATION=/Od /Oi
MSDevDir=c:\msdev;
Mstools=D:\MSTOOLS
NEW_CRTS=1
NTDEBUG=ntsd
NTDEBUGTYPE=both
NTMAKEENV=D:\DDK\inc
NTRESKIT=C:\apps\NTRESKIT
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=D:\MSTOOLS\bin;C:\WINNT\system32;C:\WINNT;c:\msdev\bin;D:\MSTOOLS\bin;D:\DDK\bin;c:\app
s\vslick\win;c:\bin;c:\bin\idw;
PATHEXT=.COM;.EXE;.BAT;.CMD
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 5 Model 2
Stepping 5, GenuineIntel
PROCESSOR_LEVEL=5
PROCESSOR_REVISION=0205
prompt=$p$g
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\TEMP
TMP=C:\TEMP
USERDOMAIN=REDMOND
USERNAME=KevinJon
USERPROFILE=C:\WINNT\Profiles\KevinJon
windir=C:\WINNT
_NTROOT=D:\DDK
_OBJ_DIR=obj |
|