Hi Aishwarya Bhat,
Thank you for feedback. I have create a new project with OneCoreUap.lib, and met the same error. I found, the onecoreuap.lib is a component of Windows 10 SDK. But the visual studio 2013 is based on windows 8.1 SDK. So we recommend you could use visual studio 2015 or later version.
Or you need to change these default properties in Project Properties->VC++ Directories in visual studio 2013:
- Executable Paths: replace $(WindowsSDK_ExecutablePath) with
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86
andC:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools
- Include Paths: replace $(WindowsSDK_IncludePath) with
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um
andC:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared
andC:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt
- Library Paths: replace $(WindowsSDK_LibraryPath_x86) with
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86
- Exclude Paths: replace $(WindowsSDK_IncludePath) with
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86
In addition, you also need to add C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib
in Project properties-> linker -> General -> Additional Include Directories
.
After that it could build successfully.
Best Regards,
Dylan
----
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.