阅读:2002回复:3
请教高手
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 |
|
沙发#
发布于:2003-12-11 09:37
谢谢楼上的,这个问题我解决了。因为VC里目录设置不同。每次我编译完驱动程序后,再编译其他的(不是驱动程序)都要重新设置目录。而且非常麻烦。
|
|
板凳#
发布于: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. |
|
|
地板#
发布于:2003-12-11 09:28
这个问题我也遇到过了,查看了一下MSDN,DDK XP在VC6.0下一些程序不能编译,原因当然是VC6.0不支持,只能用DDK的BUILD程序编译,而DDK 2K和DDK 98则不会
|
|
|