Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, March 9, 2016 7:23 PM | 1 vote
I get this error. I have installed visual studio community 2015 with update 1.
Please let me know
All replies (13)
Thursday, March 10, 2016 9:12 AM ✅Answered | 2 votes
Dear pavana yadav,
The file ucrtd.lib is a library from the Windows SDK and I searched it on my computer and it located in C:\Program Files (x86)\Windows Kits\10\Lib, and as far as I known, the Visual C ++ didn’t include the Windows SDK, I recommend you download the Windows SDK from the following links refer to your OS version, and use it to install or repair.
Windows SDK for Windows 7:
https://www.microsoft.com/en-us/download/details.aspx?id=8279
Windows SDK for Windows 8.1:
https://dev.windows.com/en-us/downloads/windows-8-1-sdk
Windows SDK for Windows 10:
https://dev.windows.com/en-US/downloads/windows-10-sdk
if this issue still persists, please help me to collect the log. Please run the command: devenv /log in the developer command prompt of VS 2015 community, then upload the file (%APPDATA%\Microsoft\VisualStudio\Version\ActivityLog.xml) to https://skydrive.live.com/ and share the link here.
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Tuesday, March 15, 2016 2:03 AM ✅Answered | 1 vote
Dear pavana Yadav,
Do you have both this 2 folders 10.0.10240.0 and 10.0.10150.0 in your system? If you have only 10.0.10150.0, I recommend you manually delete this folder (back up it before delete) then reinstall Windows SDK for Window 10 from: https://dev.windows.com/en-US/downloads/windows-10-sdk and check the folder 10.0.10240.0 will created or not.
After that, you can try to access VC++ DirectoriesàLibrary Directories and add the MSBuild property: $(UniversalCRT_IncludePath) to find the folder, like the following screenshot from my local, please refer to this blog: https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Wednesday, March 9, 2016 8:21 PM
I get this error. I have installed visual studio community 2015 with update 1.
Please let me know
I'm not familiar with urctd.lib. Are you by any chance using a third-party library? If so, which one?
Friday, March 11, 2016 6:27 PM
hi
Yes i can see the ucrtd.lib in C:\Program Files (x86)\Windows Kits\10\Lib, in my system. But how to just include them in my project.
Friday, March 11, 2016 6:37 PM
https://msdn.microsoft.com/en-us/library/024awkd1.aspx
I would review the property page and your linker path.
Monday, March 14, 2016 7:44 AM
Dear pavana yadav,
Thank you for your update.
Please follow the steps as below:
1. Open the project’s Property Pages dialog box (right click project name and select property pages)
2. Click the Linker folder
3. Click the Input property page
4. Modify the Additional Dependencies property and add the ucrtd.lib
5. Restart VS
For the detail information, please take a look at this article: https://msdn.microsoft.com/en-us/library/ba1z7822.aspx?f=255&MSPPError=-2147217396
If you have any other issue, please feel free to let me know.
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Monday, March 14, 2016 2:16 PM
Hi
Thanks for your response. I tried adding aditional dependencies in the linker input folder. It still didnt work.
One more thing is VC++ library path VC_LibraryPath_x86 and WindowsSDK_LibraryPath_x86 are included.
When i check for the values it has C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x86
But what is in my system is C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10150.0\ucrt
folder. Those two folders differ 10.0.10240 and 10.0.10150.0. Guess i should install new sdk and try.
Let me know if i am correct.
Tuesday, March 15, 2016 10:24 AM
Hi
No i have only 10.0.10150.0 folder. Now after installing SDK for windows 10 i have 10.0.10586.0 folder.
And my VC++ directory UniversalCRT_IncludePath value is set to C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt
Its still showing error.
Severity Code Description File Line Project Suppression State
Error LNK1104 cannot open file 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt.obj'
It shows this error after adding UniversalCRT_libraryPath value in linker library.
Tuesday, March 15, 2016 6:38 PM
Hi
Thanks...Its working now. I could run cpp project on my system.
I just changes target tool to 10.0.10586.0 . Then i could compile without errors.
Thanks for the help.
Wednesday, March 16, 2016 1:17 AM
Dear pavana yadav,
I’m so glad to hear that your issue is solved.
If you have any other issue, please feel free to let me know.
BTW, if you think my reply is helpful, please mark my reply or your reply as the answer, it will benefit to other community members who have the same issue. It will be easier for them to search the solution.
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Thursday, March 9, 2017 4:25 PM
I have the same problem but the problem that I launch an execution "build.cmd --enable-dotnet-binding" with visual studio command line and it makes some tests automatically using visual studio so it uses by default its own value but the folder in my PC is 10.0.10150.0 and this generates the error "fatal error LNK1104: cannot open file 'ucrtd.lib'".
Can I change the default value of target tool (not only for one project)?
best regards,
Yassine.
Wednesday, March 6, 2019 3:25 AM
where i can change target tool? my problem is same with you
Wednesday, March 6, 2019 3:32 AM
What he means is the Windows SDK version:
Set this to the latest version installed on your system and you should be okay.
This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.