阅读:1961回复:10
关于NDIS向导的一个问题
斑竹:
1、我用drivernetwork向导生成一个miniport ndis,在生成的过程中我选择了TDI Client。在编译时就不行了,我按照提示作修改,出现103个错,提示结构重复定义。不知道怎么回事?请指点,谢谢! 2、另外,这里的ndis miniport 驱动是不是开发的我们安装网卡时安装的那个驱动,比如:8139的驱动 |
|
沙发#
发布于:2002-12-03 10:38
对问题2 : YES
|
|
板凳#
发布于:2002-12-03 12:19
嘿嘿~~
to 1。 你检查一下,在编译库文件时有没有选择好! 如果是这个问题用“编译库文件”在论坛里搜一下! :) to 2。 对! |
|
|
地板#
发布于:2002-12-03 14:09
嘿嘿~~ 没什么好说大啦,呵呵 |
|
|
地下室#
发布于:2002-12-03 14:20
我在编译时没有问题,不知道“在编译库文件时”需要做什么选择?
|
|
5楼#
发布于:2002-12-03 14:25
我在编译时出现这样的问题。
-------------------Configuration: ndis_test - Win32 NDIS 5 Checked-------------------- Compiling... Ndis_TestAdap.cpp D:\\NTDDK\\inc\\wdm.h(127) : error C2011: \'_SLIST_HEADER\' : \'union\' type redefinition D:\\NTDDK\\inc\\wdm.h(190) : error C2011: \'_MODE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(249) : error C2011: \'_KAPC\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(335) : error C2011: \'_KDPC_IMPORTANCE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(345) : error C2011: \'_KDPC\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(376) : error C2011: \'_KIPI_COUNTS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(427) : error C2011: \'_MDL\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(556) : error C2011: \'_GENERIC_MAPPING\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(612) : error C2011: \'_KPROFILE_SOURCE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(825) : error C2011: \'_RTL_QUERY_REGISTRY_TABLE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(1354) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlLargeIntegerAdd(union _LARGE_INTEGER,union _LARGE_INTEGER)\' already has a body D:\\NTDDK\\inc\\wdm.h(1372) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlEnlargedIntegerMultiply(long,long)\' already has a body D:\\NTDDK\\inc\\wdm.h(1390) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlEnlargedUnsignedMultiply(unsigned long,unsigned long)\' already has a body D:\\NTDDK\\inc\\wdm.h(1409) : error C2084: function \'unsigned long __stdcall RtlEnlargedUnsignedDivide(union _ULARGE_INTEGER,unsigned long,unsigned long *)\' already has a body D:\\NTDDK\\inc\\wdm.h(1431) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlLargeIntegerNegate(union _LARGE_INTEGER)\' already has a body D:\\NTDDK\\inc\\wdm.h(1449) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlLargeIntegerSubtract(union _LARGE_INTEGER,union _LARGE_INTEGER)\' already has a body D:\\NTDDK\\inc\\wdm.h(1828) : error C2011: \'_TIME_FIELDS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2463) : error C2011: \'_IO_STATUS_BLOCK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2500) : error C2011: \'_FILE_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2511) : error C2011: \'_FILE_BASIC_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2519) : error C2011: \'_FILE_STANDARD_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2527) : error C2011: \'_FILE_POSITION_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2531) : error C2011: \'_FILE_NETWORK_OPEN_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2542) : error C2011: \'_FILE_FULL_EA_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2556) : error C2011: \'_FSINFOCLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2568) : error C2011: \'_FILE_FS_DEVICE_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2577) : error C2011: \'_INTERFACE_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2602) : error C2011: \'_DMA_WIDTH\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2613) : error C2011: \'_DMA_SPEED\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2635) : error C2011: \'_IO_ERROR_LOG_PACKET\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2656) : error C2011: \'_IO_ERROR_LOG_MESSAGE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2799) : error C2011: \'_KEY_BASIC_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2806) : error C2011: \'_KEY_NODE_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2816) : error C2011: \'_KEY_FULL_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2830) : error C2011: \'_KEY_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2836) : error C2011: \'_KEY_WRITE_TIME_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2840) : error C2011: \'_KEY_SET_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2848) : error C2011: \'_KEY_VALUE_BASIC_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2855) : error C2011: \'_KEY_VALUE_FULL_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2865) : error C2011: \'_KEY_VALUE_PARTIAL_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2872) : error C2011: \'_KEY_VALUE_PARTIAL_INFORMATION_ALIGN64\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2878) : error C2011: \'_KEY_VALUE_ENTRY\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2885) : error C2011: \'_KEY_VALUE_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2924) : error C2011: \'_OBJECT_NAME_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2935) : error C2011: \'_SECTION_INHERIT\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(3008) : error C2011: \'_CLIENT_ID\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(3133) : error C2011: \'_MCI_STATS\' : \'union\' type redefinition D:\\NTDDK\\inc\\wdm.h(3388) : error C2011: \'_KFLOATING_SAVE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4492) : error C2011: \'_KSYSTEM_TIME\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4644) : error C2011: \'_CM_SERVICE_NODE_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4653) : error C2011: \'_CM_SERVICE_LOAD_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4661) : error C2011: \'_CM_ERROR_CONTROL_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4714) : error C2011: \'_CM_SHARE_DISPOSITION\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4792) : error C2011: \'_CM_PARTIAL_RESOURCE_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4893) : error C2011: \'_CM_PARTIAL_RESOURCE_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4911) : error C2011: \'_CM_FULL_RESOURCE_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4922) : error C2011: \'_CM_RESOURCE_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4939) : error C2011: \'_DEVICE_FLAGS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4953) : error C2011: \'_CM_COMPONENT_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4971) : error C2011: \'_CM_ROM_BLOCK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4986) : error C2011: \'_CM_INT13_DRIVE_PARAMETER\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5000) : error C2011: \'_CM_MCA_POS_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5012) : error C2011: \'_EISA_MEMORY_TYPE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5022) : error C2011: \'_EISA_MEMORY_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5035) : error C2011: \'_EISA_IRQ_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5043) : error C2011: \'_EISA_IRQ_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5053) : error C2011: \'_DMA_CONFIGURATION_BYTE0\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5060) : error C2011: \'_DMA_CONFIGURATION_BYTE1\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5067) : error C2011: \'_EISA_DMA_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5077) : error C2011: \'_EISA_PORT_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5084) : error C2011: \'_EISA_PORT_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5096) : error C2011: \'_CM_EISA_SLOT_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5112) : error C2011: \'_CM_EISA_FUNCTION_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5146) : error C2011: \'_CM_PNP_BIOS_DEVICE_NODE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5160) : error C2011: \'_CM_PNP_BIOS_INSTALLATION_CHECK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5229) : error C2011: \'_CM_SCSI_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5243) : error C2011: \'_CM_VIDEO_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5253) : error C2011: \'_CM_SONIC_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5264) : error C2011: \'_CM_SERIAL_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5278) : error C2011: \'_CM_MONITOR_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5312) : error C2011: \'_CM_FLOPPY_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5349) : error C2011: \'_CM_KEYBOARD_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5361) : error C2011: \'_CM_DISK_GEOMETRY_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5383) : error C2011: \'_IO_RESOURCE_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5452) : error C2011: \'_IO_RESOURCE_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5461) : error C2011: \'_IO_RESOURCE_REQUIREMENTS_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5490) : error C2011: \'_EXCEPTION_RECORD\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5501) : error C2011: \'_EXCEPTION_RECORD32\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5510) : error C2011: \'_EXCEPTION_RECORD64\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5524) : error C2011: \'_EXCEPTION_POINTERS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5536) : error C2011: \'_KINTERRUPT_MODE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(5545) : error C2011: \'_KWAIT_REASON\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(5582) : error C2011: \'_DISPATCHER_HEADER\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5592) : error C2011: \'_KWAIT_BLOCK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5619) : error C2011: \'_KDEVICE_QUEUE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5627) : error C2011: \'_KDEVICE_QUEUE_ENTRY\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5638) : error C2011: \'_KEVENT\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5656) : error C2011: \'_KMUTANT\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5669) : error C2011: \'_KSEMAPHORE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5679) : error C2011: \'_KTIMER\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(6141) : error C2011: \'_MEMORY_CACHING_TYPE_ORIG\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(6141) : fatal error C1003: error count exceeds 100; stopping compilation Ndis_TestOids.cpp D:\\NTDDK\\inc\\wdm.h(127) : error C2011: \'_SLIST_HEADER\' : \'union\' type redefinition D:\\NTDDK\\inc\\wdm.h(190) : error C2011: \'_MODE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(249) : error C2011: \'_KAPC\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(335) : error C2011: \'_KDPC_IMPORTANCE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(345) : error C2011: \'_KDPC\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(376) : error C2011: \'_KIPI_COUNTS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(427) : error C2011: \'_MDL\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(556) : error C2011: \'_GENERIC_MAPPING\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(612) : error C2011: \'_KPROFILE_SOURCE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(825) : error C2011: \'_RTL_QUERY_REGISTRY_TABLE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(1354) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlLargeIntegerAdd(union _LARGE_INTEGER,union _LARGE_INTEGER)\' already has a body D:\\NTDDK\\inc\\wdm.h(1372) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlEnlargedIntegerMultiply(long,long)\' already has a body D:\\NTDDK\\inc\\wdm.h(1390) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlEnlargedUnsignedMultiply(unsigned long,unsigned long)\' already has a body D:\\NTDDK\\inc\\wdm.h(1409) : error C2084: function \'unsigned long __stdcall RtlEnlargedUnsignedDivide(union _ULARGE_INTEGER,unsigned long,unsigned long *)\' already has a body D:\\NTDDK\\inc\\wdm.h(1431) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlLargeIntegerNegate(union _LARGE_INTEGER)\' already has a body D:\\NTDDK\\inc\\wdm.h(1449) : error C2084: function \'union _LARGE_INTEGER __stdcall RtlLargeIntegerSubtract(union _LARGE_INTEGER,union _LARGE_INTEGER)\' already has a body D:\\NTDDK\\inc\\wdm.h(1828) : error C2011: \'_TIME_FIELDS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2463) : error C2011: \'_IO_STATUS_BLOCK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2500) : error C2011: \'_FILE_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2511) : error C2011: \'_FILE_BASIC_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2519) : error C2011: \'_FILE_STANDARD_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2527) : error C2011: \'_FILE_POSITION_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2531) : error C2011: \'_FILE_NETWORK_OPEN_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2542) : error C2011: \'_FILE_FULL_EA_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2556) : error C2011: \'_FSINFOCLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2568) : error C2011: \'_FILE_FS_DEVICE_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2577) : error C2011: \'_INTERFACE_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2602) : error C2011: \'_DMA_WIDTH\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2613) : error C2011: \'_DMA_SPEED\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2635) : error C2011: \'_IO_ERROR_LOG_PACKET\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2656) : error C2011: \'_IO_ERROR_LOG_MESSAGE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2799) : error C2011: \'_KEY_BASIC_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2806) : error C2011: \'_KEY_NODE_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2816) : error C2011: \'_KEY_FULL_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2830) : error C2011: \'_KEY_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2836) : error C2011: \'_KEY_WRITE_TIME_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2840) : error C2011: \'_KEY_SET_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2848) : error C2011: \'_KEY_VALUE_BASIC_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2855) : error C2011: \'_KEY_VALUE_FULL_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2865) : error C2011: \'_KEY_VALUE_PARTIAL_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2872) : error C2011: \'_KEY_VALUE_PARTIAL_INFORMATION_ALIGN64\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2878) : error C2011: \'_KEY_VALUE_ENTRY\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2885) : error C2011: \'_KEY_VALUE_INFORMATION_CLASS\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(2924) : error C2011: \'_OBJECT_NAME_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(2935) : error C2011: \'_SECTION_INHERIT\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(3008) : error C2011: \'_CLIENT_ID\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(3133) : error C2011: \'_MCI_STATS\' : \'union\' type redefinition D:\\NTDDK\\inc\\wdm.h(3388) : error C2011: \'_KFLOATING_SAVE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4492) : error C2011: \'_KSYSTEM_TIME\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4644) : error C2011: \'_CM_SERVICE_NODE_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4653) : error C2011: \'_CM_SERVICE_LOAD_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4661) : error C2011: \'_CM_ERROR_CONTROL_TYPE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4714) : error C2011: \'_CM_SHARE_DISPOSITION\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(4792) : error C2011: \'_CM_PARTIAL_RESOURCE_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4893) : error C2011: \'_CM_PARTIAL_RESOURCE_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4911) : error C2011: \'_CM_FULL_RESOURCE_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4922) : error C2011: \'_CM_RESOURCE_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4939) : error C2011: \'_DEVICE_FLAGS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4953) : error C2011: \'_CM_COMPONENT_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4971) : error C2011: \'_CM_ROM_BLOCK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(4986) : error C2011: \'_CM_INT13_DRIVE_PARAMETER\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5000) : error C2011: \'_CM_MCA_POS_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5012) : error C2011: \'_EISA_MEMORY_TYPE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5022) : error C2011: \'_EISA_MEMORY_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5035) : error C2011: \'_EISA_IRQ_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5043) : error C2011: \'_EISA_IRQ_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5053) : error C2011: \'_DMA_CONFIGURATION_BYTE0\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5060) : error C2011: \'_DMA_CONFIGURATION_BYTE1\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5067) : error C2011: \'_EISA_DMA_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5077) : error C2011: \'_EISA_PORT_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5084) : error C2011: \'_EISA_PORT_CONFIGURATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5096) : error C2011: \'_CM_EISA_SLOT_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5112) : error C2011: \'_CM_EISA_FUNCTION_INFORMATION\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5146) : error C2011: \'_CM_PNP_BIOS_DEVICE_NODE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5160) : error C2011: \'_CM_PNP_BIOS_INSTALLATION_CHECK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5229) : error C2011: \'_CM_SCSI_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5243) : error C2011: \'_CM_VIDEO_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5253) : error C2011: \'_CM_SONIC_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5264) : error C2011: \'_CM_SERIAL_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5278) : error C2011: \'_CM_MONITOR_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5312) : error C2011: \'_CM_FLOPPY_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5349) : error C2011: \'_CM_KEYBOARD_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5361) : error C2011: \'_CM_DISK_GEOMETRY_DEVICE_DATA\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5383) : error C2011: \'_IO_RESOURCE_DESCRIPTOR\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5452) : error C2011: \'_IO_RESOURCE_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5461) : error C2011: \'_IO_RESOURCE_REQUIREMENTS_LIST\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5490) : error C2011: \'_EXCEPTION_RECORD\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5501) : error C2011: \'_EXCEPTION_RECORD32\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5510) : error C2011: \'_EXCEPTION_RECORD64\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5524) : error C2011: \'_EXCEPTION_POINTERS\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5536) : error C2011: \'_KINTERRUPT_MODE\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(5545) : error C2011: \'_KWAIT_REASON\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(5582) : error C2011: \'_DISPATCHER_HEADER\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5592) : error C2011: \'_KWAIT_BLOCK\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5619) : error C2011: \'_KDEVICE_QUEUE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5627) : error C2011: \'_KDEVICE_QUEUE_ENTRY\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5638) : error C2011: \'_KEVENT\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5656) : error C2011: \'_KMUTANT\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5669) : error C2011: \'_KSEMAPHORE\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(5679) : error C2011: \'_KTIMER\' : \'struct\' type redefinition D:\\NTDDK\\inc\\wdm.h(6141) : error C2011: \'_MEMORY_CACHING_TYPE_ORIG\' : \'enum\' type redefinition D:\\NTDDK\\inc\\wdm.h(6141) : fatal error C1003: error count exceeds 100; stopping compilation Error executing cl.exe. Ndis_Test.sys - 204 error(s), 0 warning(s) |
|
6楼#
发布于:2002-12-03 16:19
我也曾遇到过类似这样 \'union\' type redefinition的错误
好像是头文件的顺序不对 |
|
7楼#
发布于:2002-12-03 17:02
你是不是同时包含了wdm.h和ndis.h?找一下以前的帖子,加入一些宏定义来避免这个问题,
|
|
|
8楼#
发布于:2002-12-03 17:10
我只是用向导生成了一个程序,没有做任何修改,应该不会出现这个问题吧。各位大侠,你们在这样的环境下生成的程序编译没有问题吗?谢谢各位.
|
|
9楼#
发布于:2002-12-03 17:22
你是不是同时包含了wdm.h和ndis.h?找一下以前的帖子,加入一些宏定义来避免这个问题, 我也遇到过类似的问题 在#include \"ndis.h\" 前加 #define NDIS_WDM 1 试试看. |
|
|
10楼#
发布于:2002-12-03 17:53
还是不行啊。
|
|