Yup, I’ve got ntstrsafe.lib there, too. But I’m building a user-mode
coinstaller DLL, so I think I need strsafe.lib.
But you got me thinking… I poked around and found strsafe.lib in the
amd64, i386, ia64 subdirectories under the “lib\crt” directory (as opposed
to under the “lib\wxp” directory). So, my solution was to remove the
reference to strsafe.lib from TARGETLIBS in my Sources file.
I also found strsafe.lib in all the amd64, i386, ia64 subdirectories of the
Windows Server 2003 build environment (“lib\wnet”). I assume there’s no
difference between the “lib\crt” version and these?
This appears to be a change in the 3790.1830 DDK. In the 3790 DDK,
strsafe.lib is only in the lib{w2k|wxp|wnet} subdirectories (not in the
lib\crt subdirectories). In that case, a TARGETLIBS entry for strsafe.lib
would be required, right? But in 3790.1830, no TARGETLIBS entry for
strsafe.lib is required, since the lib\crt subdirectories are always
searched. Am I on the right track here?
-Dan
“Ken Cross” wrote in message news:xxxxx@ntdev…
Doh! That should be
C:\WINDDK\3790.1830\lib\wxp\i386\ntstrsafe.lib
Cut-and-paste error. :-{ TARGETLIBS is correct.
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Thursday, August 04, 2005 6:28 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] strsafe.lib missing in 3790.1830 Windows XP build
environment?
Try C:\WINDDK\3790.1830\inc\ifs\wxp\ntstrsafe.lib
In my Sources file, it looks like this:
TARGETLIBS= $(TARGETLIBS) $(IFSKIT_LIB_PATH)\ntstrsafe.lib
HTH,
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Daniel E. Germann
Sent: Thursday, August 04, 2005 6:23 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] strsafe.lib missing in 3790.1830 Windows XP build
environment?
I was updating some code in a coinstaller DLL this afternoon, and decided
to
change all the wsprintf calls to StringCbPrintf.
Unfortunately, I ran into a little problem. I’m building in the Windows
XP
build environment with the 3790.1830 DDK.
NMAKE : fatal error U1073: don’t know how to make
‘c:\winddk\3790.1830\lib\wxp\i386\strsafe.lib’
I looked, and sure enough, strsafe.lib isn’t there. Strangely, it *is*
there in Windows XP build environment of the 3790 DDK.
Does anyone have an idea why this is the case?
-Dan