PDA

View Full Version : Link Error unresolved external symbol _WinVerifyTrust@12



jwang_ga
01-08-2015, 02:03 PM
I am trying to build the licensable app in VC++ 2010 with Flexnet 11.11.1.0 and get the unresolved external symbol error from lmgr.lib
unresolved external symbol _WinVerifyTrust@12 referenced in function _aL5zhPIEqLYaj from lmgr.lib
I would like to know which library is missing. Any suggestions would be greatly appreciated.

We are using the license-file based licensing.

jwnag

sean.donno
01-19-2015, 05:31 PM
Hello jwnag,

Based on the error message it seems like you need to link against Wintrust.lib.

Reference: MSDN Page for WinVerifyTrust http://msdn.microsoft.com/en-us/library/windows/desktop/aa388208.aspx

I hope that it helpful,
Sean

jwang_ga
01-21-2015, 12:50 AM
Hello jwnag,

Based on the error message it seems like you need to link against Wintrust.lib.

Reference: MSDN Page for WinVerifyTrust http://msdn.microsoft.com/en-us/library/windows/desktop/aa388208.aspx

I hope that it helpful,
Sean
Hi, Sean,
Thanks for your input.
I have checked that Wintrust.lib is included in the lib path of the project (C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib). lmgr.lib depends a few libs from that location. They all are linked ok. For some reason, it seems that the linker fails to link to Wintrust.lib. I am wondering what could be the problem.

jwang

jwang_ga
01-21-2015, 01:05 AM
Hi, Sean,
Thanks for your input.
I have checked that Wintrust.lib is included in the lib path of the project (C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib). lmgr.lib depends a few libs from that location.They all are linked ok. For some reason, it seems that the linker fails to link to Wintrust.lib.

jwang