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’
如何解决?
error C2220: warning treated as error - no ‘object’ file generated
在makefile里最后添加:
降低较高等级为w1
!if $(FREEBUILD)
MSC_WARNING_LEVEL=/W1
!else
MSC_WARNING_LEVEL=/W3
!endif