[VS 2015] Error while building sample driver

Ask your beginner questions here.

[VS 2015] Error while building sample driver

Postby 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
Reputation point: 0

Re: [VS 2015] Error while building sample driver

Postby 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
guidono
 
Posts: 4
Joined: Sun Feb 19, 2017 4:03 pm
Reputation point: 0

Re: [VS 2015] Error while building sample driver

Postby 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.)
Only via chaos and excellence can beauty and success be respectively created and achieved.
User avatar
tangptr
 
Posts: 20
Joined: Mon Nov 14, 2016 11:14 am
Location: People Republic of China
Reputation point: 0


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 1 guest