[VS 2015] Error while building sample driver

Ask your beginner questions here.
Post Reply
guidono
Posts: 4
Joined: Sun Feb 19, 2017 4:03 pm

[VS 2015] Error while building sample driver

Post by guidono » Sun Feb 19, 2017 4:11 pm

Hello !

I'm currently trying to create a driver using the following sample : https://msdn.microsoft.com/en-us/window ... df--driver

But I have 603 errors...

'expected a ';' in basetsd.h
identifier "wchar_t" is undefined in ntdef.h
...

I looked for a solution on internet and I found this interesting link about the universal crt : https://blogs.msdn.microsoft.com/vcblog ... ersal-crt/
So I added to the Additional include directories "$(UniversalCRT_IncludePath)".

But I still have a lot of errors and I don't know why... Do you have any idea ?

guidono
Posts: 4
Joined: Sun Feb 19, 2017 4:03 pm

Re: [VS 2015] Error while building sample driver

Post by guidono » Sun Feb 19, 2017 5:37 pm

I finally solved my problem !

The path to the crt was missing in the Additional include directories, so I added this one : ../Windows Kits\10\Include\10.0.14393.0\km\crt.
I thought that the km directory was enough :s

User avatar
tangptr
Posts: 28
Joined: Mon Nov 14, 2016 11:14 am
Location: People Republic of China
Contact:

Re: [VS 2015] Error while building sample driver

Post by tangptr » Wed May 10, 2017 5:09 pm

Several weeks ago, I built a driver via Batch file. My conclusion is that there are three basic header file directories that building a basic NT-Style driver requires: the crt, api and the ddk(Related to WDK7.1.) In WDK10, names of those directories were respectively changed as km\crt(corresponding to crt,) shared(corresponding to api,) and km(corresponding to ddk.)
At long last, the jumping hands of time will be halted by a weakling cast in eternal solitude.

Post Reply