[WinPrnDev] Strange XPS driver build issue with WDK 7

Hi gurus,

We've got an XPS driver in house here which was based on the XPS sample driver 
from an older version of the WDK (unfortunately, I do not know the specific WDK 
version, but it was WDK 6 or earlier). When we try to build this driver using 
the latest WDK 7, we are getting some very strange errors.

We are building from a x86 free build Vista/2008 build window, using the usual 
build system.

In the build log, in the first few lines, we see:

2>BUILDMSG: _NT_TARGET_VERSION SET TO WINXP

And a bit later, during compilation of one of the filter modules, we see:

1>NMAKE : fatal error U1073: don't know how to make 
'c:\winddk\7600.16385.1\lib\wxp\i386\msxml6.lib'

The problem is clearly the lack of msxml6.lib under the wxp libraries. However, 
it should not be selecting wxp at this point. It should be using wlh 
(Longhorn). We have checked and double-checked all of our 
MINIMUM_NT_TARGET_VERSION settings, and they are all set to 0x600, which I 
believe is what it should be. The SDK_LIB_PATH variable is set to:

C:\WinDDK\7600.16385.1\lib\wlh\*

Which again, seems correct. Yet for some reason, the build system is deciding 
that the target version is WinXP. We can't seem to figure out where in the 
process things go wrong, but they go wrong very early on.

I've sanity checked that the XPSDrvSmpl that comes with the WDK compiles 
correctly. We have lined up all the sources, sources.inc, and makefiles against 
each other, and we cannot see any relevant differences.

Does anybody have a clue why the build system seems to get confused and think 
it's targeting WinXP? This driver needs to be targeted to Longhorn.

Thanks,

Scott Long
Senior Software Engineer
Digimarc Corporation
scott.long@xxxxxxxxxxxx
p. 503.469.4687
http://www.digimarc.com
---
Questions? First check the UndocPrint pages at 
http://www.undocprint.org/winspool

To unsubscribe, visit the List Server page at 
http://www.freelists.org/list/winprndev

Other related posts: