yachli
驱动小牛
驱动小牛
  • 注册日期2004-04-12
  • 最后登录2016-03-08
  • 粉丝1
  • 关注0
  • 积分7分
  • 威望111点
  • 贡献值0点
  • 好评度59点
  • 原创分0分
  • 专家分0分
阅读:1441回复:0

debug模式下编译为什么出来的不带DbgPrint的输出信息呢?

楼主#
更多 发布于:2007-03-14 16:48
  代码如下:

#if DBG
extern int gDebugLevel=5;
#define DebugPrintCond( ilev, cond, _x_) \
    if( gDebugLevel && ( ilev <= gDebugLevel ) && ( cond )) { \
            DbgPrint( "Debug Test"); \
            DbgPrint _x_ ; \
    }

#else

#define DebugPrintCond( ilev, cond, _x_)  DbgPrint("Release Test")

#endif

debug模式下编译为什么总是按照release的信息走。不知道什么原因。

编译的时候有以下警告
LINK : warning LNK4224: /PDB:NONE is no longer supported;  ignored
LINK : warning LNK4224: /DEBUG:NOTMAPPED is no longer supported;  ignored

prosscesor definifition 如下:
_UNICODE,_VCIDE_,_DEBUG,_X86_,WINDK_ENV_NT5,OLD_WDM_HEADER,UNICODE,WIN32DRIVER,BUILD_FOR_DP
游客

返回顶部