I am working on creating a kernel driver for Windows 10 (x64) using Visual Studio 2019 with their KMDF template, but I ran into the following error.
Severity Code Description Project File Line Suppression State
Error LNK1120 1 unresolved externals Assisted C:\Users\me\source\repos\Assisted\x64\Release\Assisted.sys 1
Error LNK2001 unresolved external symbol _fltused Assisted C:\Users\me\source\repos\Assisted\Driver.obj 1
After looking this up I found this on it Example but I am still not sure how to fix this. I have made drivers in the past with the same template, and I have never gotten this error before. I also found This regarding this issue but it was posted over a decade ago so I don't know how to use his 2010 Vs fix in the 2019 version or even know if it will even work.
Edit: I was suggested to use the following "fix" however this does not work either because I now get an error saying its already defined in my obj file.
Severity Code Description Project File Line Suppression State
Error LNK2005 _fltused already defined in Driver.obj AssistedC:\Users\me\source\repos\Assisted\Moufilter.obj 1
Error LNK1169 one or more multiply defined symbols found Assisted C:\Users\me\source\repos\Assisted\x64\Release\Assisted.sys 1