DDK 的 SOURCES 不能包含 .h 头文件
今天无意间查看DDk driver 的 source 文件,发现只有.c 文件,还以为写的时候忘记了 .h 谁知加上之后居然通不过。查了一下才发现 SOURCE 不能包含头文件,否则会出现:
link : error LNK1218: warning treated as error; no output file generated
在 buildchk.wrn 文件中可以看到更详细的错误信息:
warning LNK4042: Object Specified more than once; extras ignored.
转: http://hi.baidu.com/techofchaos/blog/item/1f3fbd4ea82f493eaec3ab22.html
link : error LNK1218: warning treated as error; no output file generated
在 buildchk.wrn 文件中可以看到更详细的错误信息:
warning LNK4042: Object Specified more than once; extras ignored.
转: http://hi.baidu.com/techofchaos/blog/item/1f3fbd4ea82f493eaec3ab22.html