阅读:1370回复:2
关于重复定义的问题
:(
我用vc6.0 建立了一个MFC AppWizard(DLL) 的工程,然后我在里面包\"NTDDK.H\"的头文件,出现以下错误,这应该怎么解决呢? 请教一下!谢谢! c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(80) : warning C4005: \'MAX_NATURAL_ALIGNMENT\' : macro redefinition c:\\program files\\microsoft visual studio\\vc98\\include\\winnt.h(47) : see previous definition of \'MAX_NATURAL_ALIGNMENT\' c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(223) : warning C4005: \'FASTCALL\' : macro redefinition c:\\program files\\microsoft visual studio\\vc98\\mfc\\include\\afxver_.h(213) : see previous definition of \'FASTCALL\' c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(602) : error C2011: \'_FLOAT128\' : \'struct\' type redefinition c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(649) : error C2011: \'_LARGE_INTEGER\' : \'union\' type redefinition c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(668) : error C2011: \'_ULARGE_INTEGER\' : \'union\' type redefinition c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(690) : error C2011: \'_LUID\' : \'struct\' type redefinition c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(807) : warning C4005: \'UInt32x32To64\' : macro redefinition c:\\program files\\microsoft visual studio\\vc98\\include\\winnt.h(498) : see previous definition of \'UInt32x32To64\' c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(841) : error C2084: function \'unsigned __int64 __stdcall Int64ShllMod32(unsigned __int64,unsigned long)\' already has a body c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(857) : error C2084: function \'__int64 __stdcall Int64ShraMod32(__int64,unsigned long)\' already has a body c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(873) : error C2084: function \'unsigned __int64 __stdcall Int64ShrlMod32(unsigned __int64,unsigned long)\' already has a body c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(1057) : error C2011: \'_LIST_ENTRY\' : \'struct\' type redefinition c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(1067) : error C2011: \'_SINGLE_LIST_ENTRY\' : \'struct\' type redefinition c:\\winddk\\2600.1106\\inc\\ddk\\w2k\\ntdef.h(1228) : fatal error C1083: Cannot open include file: \'guiddef.h\': No such file or directory Error executing cl.exe. |
|
沙发#
发布于:2003-07-22 12:18
我并没有去调用ntdef.h ,这个应该是NTDDK.H自己去调用的! 所以有什么办法让他不要重复定义呢?
|
|
板凳#
发布于:2003-07-22 11:23
很显然你又包含了ntdef.h文件,删除重复的内容就可以了
|
|
|