mojing1999
驱动牛犊
驱动牛犊
  • 注册日期2003-12-03
  • 最后登录2008-11-23
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2002回复:3

请教高手

楼主#
更多 发布于:2003-12-08 10:05
C:\\WINDDK\\2600\\INC\\DDK\\WDM\\WXP\\wdm.h(24) : fatal error C1189: #error :  Compiler version not supported by Windows DDK

编译一个工程出现了这个错误。请问这是什么的问题。
我的环境是 XP + vc++ 6.0 + ddkxp
这个工程在别的机子编译没有任何问题,这个机子的是
 2k + vc6.0 + ddk2k
mojing1999
驱动牛犊
驱动牛犊
  • 注册日期2003-12-03
  • 最后登录2008-11-23
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-12-11 09:37
谢谢楼上的,这个问题我解决了。因为VC里目录设置不同。每次我编译完驱动程序后,再编译其他的(不是驱动程序)都要重新设置目录。而且非常麻烦。
dragon_hn
驱动中牛
驱动中牛
  • 注册日期2002-05-18
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分297分
  • 威望40点
  • 贡献值0点
  • 好评度32点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-12-11 09:32
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndevice/html/newinwinxpddk.asp

New Build Environment
A number of important changes have been made to the Windows DDK build environment. For one, the Windows DDK now includes a complete set of tools for building drivers. Microsoft? Visual C++? is no longer required to be installed to use the DDK. Use of the included tools for all Windows 2000 and Windows XP drivers is expected within the shipping build environment. This version of the Windows DDK does not support building Windows XP or Windows 2000 drivers using a version of Microsoft Visual C++ earlier than the one supplied with the DDK. Attempts to use an incorrect version of Visual C++ will result in the following error message from the compiler:

error C1189: #error : Compiler version not supported by Windows DDK
This requirement is due to the reliance on many new features within this tool set for proper functioning of the include build environment. The compiler, linker, and supporting files, such as C Run-Times (CRTs), should be considered an atomic unit within the build environment. It is likely that mixing the supporting tool files of Visual C++ versions 5 or 6 with those in this DDK release, which are based on the new Visual C++ version 7 code base, will result in errors in the binaries. Using the provided build environment and build tools is thus strongly recommended to ensure generation of valid binaries.

 
www.dragon-2008.com 欢迎交流
dragon_hn
驱动中牛
驱动中牛
  • 注册日期2002-05-18
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分297分
  • 威望40点
  • 贡献值0点
  • 好评度32点
  • 原创分0分
  • 专家分0分
地板#
发布于:2003-12-11 09:28
这个问题我也遇到过了,查看了一下MSDN,DDK XP在VC6.0下一些程序不能编译,原因当然是VC6.0不支持,只能用DDK的BUILD程序编译,而DDK 2K和DDK 98则不会
www.dragon-2008.com 欢迎交流
游客

返回顶部