当前位置: 代码迷 >> WinCE >> 新手一枚,最近在做WinCE的定制,用PB编译后出现好多异常和警告,希望大家能帮小弟我解决下,多谢啦
  详细解决方案

新手一枚,最近在做WinCE的定制,用PB编译后出现好多异常和警告,希望大家能帮小弟我解决下,多谢啦

热度:73   发布时间:2016-04-28 12:05:22.0
新手一枚,最近在做WinCE的定制,用PB编译后出现好多错误和警告,希望大家能帮我解决下,谢谢啦!
(1)下面是代码:
#include <windows.h>
#include <x86kitl.h>

static OAL_KITL_ETH_DRIVER DrvNE2k  = OAL_ETHDRV_NE2000;     // NE2000
static OAL_KITL_ETH_DRIVER DrvRTL   = OAL_ETHDRV_RTL8139;    // RTL8139
static OAL_KITL_ETH_DRIVER DrvDP    = OAL_ETHDRV_DP83815;    // DP83815
static OAL_KITL_ETH_DRIVER DrvRndis = OAL_ETHDRV_RNDIS;      // RNDIS
static OAL_KITL_ETH_DRIVER Drv3C90  = OAL_ETHDRV_3C90X;      // 3C90X
static OAL_KITL_ETH_DRIVER DrvI825  = OAL_ETHDRV_I825;       // I825XX
static OAL_KITL_ETH_DRIVER DrvRDC   = OAL_ETHDRV_R6040;      // R6040   /* RDC MAC driver */


const SUPPORTED_NIC g_NicSupported []=
{
//   VenId   DevId   UpperMAC      Type              BarOffset Name   Drivers
//  ---------------------------------------------------------------------------------
    {0x0000, 0x0000, 0x004033, EDBG_ADAPTER_NE2000,  0,        "AD", &DrvNE2k  }, /* Addtron */\
    {0x1050, 0x0940, 0x004005, EDBG_ADAPTER_NE2000,  0,        "LS", &DrvNE2k  }, /* LinkSys */\
    {0x1050, 0x0940, 0x002078, EDBG_ADAPTER_NE2000,  0,        "LS", &DrvNE2k  }, /* LinkSys */\
    {0x10EC, 0x8029, 0x00C0F0, EDBG_ADAPTER_NE2000,  0,        "KS", &DrvNE2k  }, /* Kingston */\
    {0x10EC, 0x8129, 0x000000, EDBG_ADAPTER_RTL8139, 0,        "RT", &DrvRTL   }, /* RealTek */\
    {0x10EC, 0x8139, 0x00900B, EDBG_ADAPTER_RTL8139, 0,        "RT", &DrvRTL   }, /* RealTek  */\
    {0x10EC, 0x8139, 0x00D0C9, EDBG_ADAPTER_RTL8139, 0,        "RT", &DrvRTL   }, /* RealTek */\
    {0x10EC, 0x8139, 0x00E04C, EDBG_ADAPTER_RTL8139, 0,        "RT", &DrvRTL   }, /* RealTek */\
    {0x1186, 0x1300, 0x0050BA, EDBG_ADAPTER_RTL8139, 0,        "DL", &DrvRTL   }, /* D-Link */\
    {0x100B, 0x0020, 0x00A0CC, EDBG_ADAPTER_DP83815, 0,        "NG", &DrvDP    }, /* Netgear */\
    {0x10B7, 0x9050, 0x006008, EDBG_ADAPTER_3C90X,   0,        "3C", &Drv3C90  }, /* 3Com */\
    {0x10B7, 0x9200, 0x000476, EDBG_ADAPTER_3C90X,   0,        "3C", &Drv3C90  }, /* 3Com */\
    {0x8086, 0x1039, 0x004033, EDBG_ADAPTER_I825,    1,        "IN", &DrvI825  }, /* Intel */\
    {0x8086, 0x103A, 0x004033, EDBG_ADAPTER_I825,    1,        "IN", &DrvI825  }, /* Intel */\
    {0x8086, 0x1051, 0x004033, EDBG_ADAPTER_I825,    1,        "IN", &DrvI825  }, /* Intel */\
    {0x8086, 0x1229, 0x004033, EDBG_ADAPTER_I825,    1,        "IN", &DrvI825  }, /* Intel */\
    {0x8086, 0x2449, 0x004033, EDBG_ADAPTER_I825,    1,        "IN", &DrvI825  }, /* Intel */\
    {0x10b5, 0x9054, 0x00800f, EDBG_USB_RNDIS,       0,        "NC", &DrvRndis },  /* NetChip */\
    {0x17F3, 0x6040, 0x000000, EDBG_ADAPTER_OEM,     0,        "RD", &DrvRDC   } /* RDC */  /* Daniel+20060713 */
};

const int g_nNumNicSupported = sizeof (g_NicSupported) / sizeof (g_NicSupported[0]);
(2)PB显示错误:
BUILD: [01:0000000029:ERRORE] C:\WINCE500\PLATFORM\Vortex86dx_50f\Src\Common\Kitl\kitldrv.c(47) : error C2065: 'EDBG_ADAPTER_I825' : undeclared identifier
  相关解决方案