cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jwang_ga
Level 3

Link Error unresolved external symbol _WinVerifyTrust@12

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
0 Kudos
(3) Replies
sean_donno
Level 2

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
0 Kudos
jwang_ga
Level 3

sean.donno wrote:
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
0 Kudos
jwang_ga
Level 3

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
0 Kudos