阅读:1441回复:0
debug模式下编译为什么出来的不带DbgPrint的输出信息呢?
代码如下:
#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 |
|