error LNK2001: unresolved external symbol dpCurSettings

今天做一个debug OS,在eboot下download os image,通过ethernet进行kitl的debug,在buld debug OS时遇到下面这个错误

" error LNK2001: unresolved external symbol dpCurSettings"

注:这个错误如果是编译release版本的就不会有问题

 

其实很简单,dpCurSettings是一个数组变量,在这里没有定义或声明,定义或声明下就好了

 

#ifdef DEBUG
DBGPARAM dpCurSettings = {
     TEXT("CCID"),
     {
     TEXT("Init"), TEXT("Unused"), TEXT("Unused"), TEXT("Unused"),
     TEXT("Unused"), TEXT("Unused"), TEXT("Unused"), TEXT("Unused"),
     TEXT("Unused"), TEXT("Unused"), TEXT("Unused"), TEXT("Misc"),
     TEXT("Unused"), TEXT("Function"), TEXT("Warning"), TEXT("Error")
     },
     0
};
#endif

 

下面是MSDN上对这个数据类型的介绍:

http://technet.microsoft.com/zh-cn/aa451060(en-us).aspx

 

DBGPARAM

Send Feedback

This structure is used with RegisterDbgZones to specify debug zone information for a process or DLL.


   
   
  1. typedef struct _DBGPARAM {
  2.    WCHAR   lpszName[32];
  3.    WCHAR   rglpszZones[16][32];
  4.    ULONG   ulZoneMask;
  5. } DBGPARAM, *LPDBGPARAM;
Members
lpszName
Name of module. The name can be a maximum of 31 characters plus a terminating NULL.
rglpszZones
Names of zones for first 16 bits. Each zone name can be a maximum of 31 characters plus a terminating NULL.
ulZoneMask
Current zone mask. This value defines which zones are enabled by default for the module.
Remarks

The name of the module is used to look for zone initialization information in the registry of the host PC and in the registry of the target device. Zone names are displayed by the control application that allows the user to dynamically set zones.

For more information, see DBGPARAM Structure Declaration.

Requirements

OS Versions: Windows CE OS 2.10 and later
Header: Dbgapi.h
Link Library: none

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

JXES智能生态系统

如文章对你有用,请作者喝个咖啡

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值