-
-
[旧帖] 求大神看看是哪里错了,编译出错 0.00雪花
-
发表于: 2016-3-20 17:26 1447
-
这里是我截取的一部分代码,是个驱动代码。可以在WDK-XP里面build成功,用VC IDE却不能编译
#endif // _ARC_DDK_
//
// Several routines have an architecture specific implementation. Generate
// an error if a supported target is not defined.
//
#if !(defined(_X86_) || defined(_AMD64_) || defined(_IA64_))
#error "No target architecture defined"// 在这里报的错!
#endif
#if (NTDDI_VERSION < NTDDI_WIN7) || defined(_X86_) || !defined(NT_PROCESSOR_GROUPS)
#define SINGLE_GROUP_LEGACY_API 1
#endif
下面是编译报告:
//
--------Configuration: Nt1 - Win32 Nt1--------------------
Compiling...
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9035 : option 'GZ' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'RTC1' instead of 'GZ'
cl : Command line warning D9002 : ignoring unknown option '/MLd'
cl : Command line warning D9002 : ignoring unknown option '/YX'
Driver.cpp
c:\winddk\7600.16385.1\inc\ddk\ntddk.h(8289) : fatal error C1189: #error : "No target architecture defined"
执行 cl.exe 时出错.
Nt1.exe - 1 error(s), 0 warning(s)
求大神看看,大概是哪里出错了,我用的是VC6.0+WDK
#endif // _ARC_DDK_
//
// Several routines have an architecture specific implementation. Generate
// an error if a supported target is not defined.
//
#if !(defined(_X86_) || defined(_AMD64_) || defined(_IA64_))
#error "No target architecture defined"// 在这里报的错!
#endif
#if (NTDDI_VERSION < NTDDI_WIN7) || defined(_X86_) || !defined(NT_PROCESSOR_GROUPS)
#define SINGLE_GROUP_LEGACY_API 1
#endif
下面是编译报告:
//
--------Configuration: Nt1 - Win32 Nt1--------------------
Compiling...
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9035 : option 'GZ' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'RTC1' instead of 'GZ'
cl : Command line warning D9002 : ignoring unknown option '/MLd'
cl : Command line warning D9002 : ignoring unknown option '/YX'
Driver.cpp
c:\winddk\7600.16385.1\inc\ddk\ntddk.h(8289) : fatal error C1189: #error : "No target architecture defined"
执行 cl.exe 时出错.
Nt1.exe - 1 error(s), 0 warning(s)
求大神看看,大概是哪里出错了,我用的是VC6.0+WDK
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
赞赏
看原图
赞赏
雪币:
留言: