error C1083: Cannot open include file: '\inc\wxp\warning.h': No such file or directory

青春壹個敷衍的年華 提交于 2019-12-12 04:30:59

问题


Background: So I picked up Programming the Windows Driver model and tried to build the very first sample it has using visual studio 2013 Ultimate. While the book seems very reputed, there is no update for the sample code.

I saw some signs to used the older "build" instead of current msbuild / visual studio. But that is another learning I am not prepared to do unless required (especially as I didnt find nmake or build quickly enough and i ll be learning older build processes which I dont need to use).

Problem: error C1083: Cannot open include file: '\inc\wxp\warning.h': No such file or directory stddcls.cpp

Building the sample gives me this error. I included the folders for wdm.h and warning.h in the includes path. Wdm.h got resolved, but warning.h continues to throw an error - and I dont even know where warning.h in included/referenced.

I can post the entire code if required.

Yes, I am new to driver development.

If this book is too old to use, pointers to "newer" tutorials of Windows driver dev is appreciated.


回答1:


In Visual studio Project -> Properties -> C/C++ -> Advanced -> Forced Include file.

There is a hardlink to warning.h here. This needs to be changed to C:\Program Files (x86)\Windows Kits\8.1\Include\shared\warning.h and the error goes away!




回答2:


Another useful link for "Programming the Windows Driver Model" Oney:

http://csserver.evansville.edu/~reising/EE%20356%20Fall%202005/Changes%20to%20files%20from%20Walter%20Oney.pdf



来源:https://stackoverflow.com/questions/24135062/error-c1083-cannot-open-include-file-inc-wxp-warning-h-no-such-file-or-dir

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!