DbgPrint在 check 和free build 下报错?

free build:

1>errors in directory d:\cygwin\home\administrator\kt\driver_dev\nl\hello_world
1>d:\cygwin\home\administrator\kt\driver_dev\nl\hello_world\hello.c(19) : error C2220: warning treated as error - no ‘object’ file generated
Linking Executable - objfre_win7_amd64\amd64\hello.sys
1>link : error LNK1181: cannot open input file ‘d:\cygwin\home\administrator\kt\driver_dev\nl\hello_world\objfre_win7_amd64\amd64\hello.obj’

DbgPrint在 check 和free build 下报错?_第1张图片为什么?
dprint有问题,,,?
待研究。

如何解决?
error C2220: warning treated as error - no ‘object’ file generated

在makefile里最后添加:
降低较高等级为w1

!if $(FREEBUILD)
MSC_WARNING_LEVEL=/W1
!else
MSC_WARNING_LEVEL=/W3
!endif

你可能感兴趣的:(win_driver)