Comments (17)
Hi
I have just been informed that a fix for these above linker errors is in the Visual Studio Release pipeline. I don't know when it will be released or in which version.
But for now, apparently the work-around is:
Clear the "External Include Directories" field in the project settings.
Or, just use 16.9.x until then.
from dmf.
from dmf.
Microsoft Visual Studio Professional 2019
Version 16.10.0
VisualStudio.16.Release/16.10.0+31321.278
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Professional
Visual C++ 2019 00435-60000-00000-AA343
Microsoft Visual C++ 2019
ASP.NET and Web Tools 2019 16.10.525.31942
ASP.NET and Web Tools 2019
Cookiecutter 16.10.21111.19
Provides tools for finding, instantiating and customizing templates in cookiecutter format.
Debugging Tools for Windows 10.0.20324.1000
Integrates the Windows Debugger functionality (http://go.microsoft.com/fwlink/?linkid=223405) in Visual Studio.
IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
NuGet Package Manager 5.10.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Windows Driver Kit 10.0.20324.1000
Headers, libraries, and tools needed to develop, debug, and test Windows drivers (msdn.microsoft.com/en-us/windows/hardware/gg487428.aspx)
from dmf.
Hi, so...
There have been issues reported with 16.10. The issues I found are different than what you found above. However, it is possible that you have run in to a similar issue.
The issue that I have found has just been fixed yesterday and release was issued here:
https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes
You can see June 8 release for 16.10.1. Can I trouble you to install that version of Visual Studio and see if it corrects your issue?
This is the issue I found that has been corrected:
I have just built all DMF, DmtTest and DmfSamples without any problem (using 16.9).
If you still have a problem, let me know. You can also send me email at: [email protected]
Thank you for your report and your patience.
from dmf.
So I think I see what's going on, I updated to 2019 V16.0.1 as you suggested, tried the builds (DMF Debug and My Project Debug) again and my project build failed. I was using the 10.0.20344.0 SDK/DDK . Switched that to 10.0.19041.0 SDK/DDK and my project build failed with, not the same but similar errors. Switched to the 10.0.17763.0 SDK/DDK and everything seems to compile/link fine. BUT, I went back to the 10.0.20344.0 SDK/DDK and the 10.0.19041.0 SDK/DDK, in both cases my project build fails. Then upon switching back to the 0.0.17763.0 SDK/DDK , my project build fails again with just 2 errors (linker) like __stdio_common_vsprintf referenced in function _vsnprintf_l .... Seems something is not being cleaned out in the settings ???
from dmf.
Are you using the SDK/DDK or the EWDK? We always use EWDK here.
We open the EWDK command using command line as Administrator. Then, run LaunchBuildEnv.cmd. Then, switch to BuildEnv and run:
setdevenv
setupbuildenv
setupvsenv
Then, we run VisualStudio from that command line...using a shortcut: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe"
I have not used standard SDK/DDK in years. The EWDK has worked very well.
Can you try that?
It looks to me like you are running into some kind of SDK/DDK issue. I think you will be happier with EWDK. One nice thing about it is that you can easily have multiple versions of EWDK installed and then you can start VS in any version you want.
You can get EWDK here: https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
Look at the middle of page for:
"EWDK with Visual Studio Build Tools"
Download the EWDK for Windows 10, version 2004
It has instructions there too...but you can do what I did above.
I agree there seems to be some kind of clean up error using SDK/DDK. I don't think it is a DMF issue...it is just some issue that has started happening by coincidence and possibly related to 16.10.0 compiler...or 16.10.x compiler.
Let me know what you find...Again, sorry you are having this issue... I know these kinds of issues are not pleasant.
from dmf.
So after installing the EWDK and following the instructions at the installation link, using VS 2019 16.0.1 , we were able to build the DMF (Debug) and our Project (Debug) in SDK/DDK version 10.0.19041.0 which is what was in the
Download the EWDK for Windows 10, version 2004 . Funny now my post driver build analysis tool no longer runs. So there is ONLY 1 SDK/WDK version available in an EWDK? I did see ddk's for win 7 and 8 , but none of the newer ones, other than 10.0.19041.0. Is it possible to have multiple under on EWDK install? Also, do you have any examples of automating this in a Jenkins CI/CD/CT pipeline?
from dmf.
from dmf.
One more note...one nice thing about EWDK is you don't need to "install" it. You just copy the .iso onto your hard drive and mount it. Or, you can extract the .ISO onto a directory of your hard drive. This way you can multiple EWDK version and you KNOW that no version interferes with any other version. Once I used EWDK for driver programming, I never looked back. It is just a better way.
Here is where you can get older versions of the EWDK: https://docs.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads
But you want a NEWER version that contains a newer DDK/SDK, correct? I do not know when that will be released. I can try to investigate that but it may take some time.
from dmf.
Some other information about EWDK:
https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/using-the-enterprise-wdk
from dmf.
Sam, thank you for all of your help in what turned out NOT to be an issue specifically with the DMF, but an environment issue...
from dmf.
Thank you for your patience and for reporting the issue.
from dmf.
Just to add here, I was facing same issue in my driver project. Without making any changes to the SDK and WDK, downgrading from 16.10.1 VS'19 to 16.9.6 helped solve the issue and build was successful.
from dmf.
Hi, soubhikSM,
Do you mean you downgraded from 16.10.1 to 16.9.6? Or from 16.10.0?
16.10.1 is what corrects some known issues (ones I reported), but I am not sure if other issues exist.
from dmf.
Hey samtertzakian , yes I downgraded from 16.10.1 to 16.9.6.
I and a couple of my other teammates faced this same issue with 16.10.1.
filename.obj : error LNK2019: unresolved external symbol _invalid_parameter_noinfo referenced in function memcpy_s
filename.obj : error LNK2019: unresolved external symbol _errno referenced in function memcpy_s
filename.obj : error LNK2019: unresolved external symbol __stdio_common_vsnwprintf_s referenced in function _vsnwprintf_s_l
filename2.obj : error LNK2019: unresolved external symbol __stdio_common_vswprintf referenced in function _vsnwprintf_l
E:<path>\driver\x64\Debug\filename.sys : fatal error LNK1120: 4 unresolved externals
Done building project "filename.driver.vcxproj" -- FAILED.
I went through the comments here and finally after having tried lot of other stuff, installing enterprise version 16.9.6 resolved the issue. I did not need to install EWDK.
from dmf.
Hi, soubhikSM,
I left feedback to Visual Studio via the link in upper right corner.
That is how I was able to get a fix for 16.10.0 to 16.10.1 (which corrected the issue in EWDK building).
Apparently, there are other issues.
I will just send them the actual errors and see what they say.
Sorry, there is not much else I can do directly.
from dmf.
Thanks for the update samtertzakian. :)
from dmf.
Related Issues (20)
- Isn't it better to design DMF on C++ code base? HOT 3
- Unexpected behaviour of ScheduledTask module HOT 7
- [UMDF] DMF_VirtualHidMini fails WriteReport requests on descriptors without Report IDs HOT 2
- Do not use Visual Studio 16.10.0 or 16.10.1 or 16.10.2 with DMF due to link regressions HOT 4
- Debugging assertion in DMF\Dmf\Modules.Library\Dmf_ScheduledTask.c HOT 12
- Question Regarding SoundWire bus support HOT 11
- Unused config param in DMF_VirtualHidKeyboard module HOT 4
- How can I disable WPP for the DMF driver ? HOT 5
- Duplicated lines HOT 2
- This repo is missing important files
- EyeGazeIoctl sample fails ApiValidator HOT 2
- Pdo_DevicePropertyTableWrite adds properties to parent device instead of PDO HOT 32
- Building with Windows 11, version 22H2 WDK (10.0.22621.0) supported? HOT 9
- Trying to use Dmf_IoctlHandler with Control Device Object, supported? HOT 15
- fatal error C1510: Cannot load language resource clui.dll HOT 12
- WDF Verifier (Handle Tracking) trips over FILEOJECT de-reference without using the right tag HOT 2
- Dmf_VirtualHidKeyboard work in User-mode? HOT 1
- Why are lib files added to linker manually? HOT 5
- Why is `EnableLookAside` a `ULONG` and not a `BOOLEAN`? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmf.