I am writing to OSR the first time. If I have written to a wrong address please guide me in proper direction.
I am compiling my first native application using WDK(C:\WinDDK\7600.16385.0) which is giving linking errors.
I am getting these errors when I am compiling and linking my native application in Checked Env. Using command:
Build -cfg
BUILD: Compile and Link for x86
BUILD: Loading c:\winddk\7600.16385.0\build.dat…
BUILD: Computing Include file dependencies:
BUILD: Start time: Sun Jan 30 17:59:59 2011
BUILD: Examining d:\anand\junkcode\natapp directory for files to compile.
d:\anand\junkcode\natapp Auto-cleaning queue for ‘root:x86chk’ (4 of 4 file(
s) removed)
Invalidating OACR warning log for ‘root:x86chk’
BUILD: Saving c:\winddk\7600.16385.0\build.dat…
BUILD: Compiling and Linking d:\anand\junkcode\natapp directory
Configuring OACR for ‘root:x86chk’ -
_NT_TARGET_VERSION SET TO WINXP
Compiling - entrypoint.c
Compiling - str.c
Compiling - file.c
Compiling - memory.c
Compiling - generating code…
1>errors in directory d:\anand\junkcode\natapp
1>NMAKE : fatal error U1073: don’t know how to make ‘\nt.lib’
1>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKE
DIR_RELATIVE_TO_BASEDIR= failed - rc = 2
BUILD: Finish time: Sun Jan 30 18:00:01 2011
BUILD: Done
6 files compiled - 2 Errors - 1,116 LPS
--------------------------------------------------------------------------------------------------------
My makefile is like this
#
# Build using BUILD.EXE (Do not edit this section of this file, edit SOURCES)
#
MINIMUM_NT_TARGET_VERSION=0x501
!INCLUDE $(NTMAKEENV)\makefile.def
--------------------------------------------------------------------------------------------------------
My Sources is like this:
TARGETNAME=NatApp
TARGETPATH=obj
TARGETTYPE=PROGRAM
INCLUDES=$(BASEDIR)\inc\ddk
SOURCES=entrypoint.c str.c file.c memory.c
--------------------------------------------------------------------------------------------------------
I have added WLHBASE=C:\WinDDK\7600.16385.0 to my env variables
I had once compiled and linked successfully above source with IFSKit but not with WinDDK.
Thanks for your time.
-Anand