954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem linking (LNK2019 Error)

I am using VisualStudio.net edition for my compiler, and the application is to PocketPC. When I link recive this error.

LNK2019: unresolved external symbol WL_HMAC_SHA1 referenced in function F   c:\Projects\redim\wzcsapi.lib 
fatal error LNK1120: 1 unresolved external   Windows Mobile 6 Professional SDK

This error in theory is because:

- Calling a function that has not been implemented
- Referencing a variable that has not been declared
- Putting code in new source files but forgetting to add those source files to the build so they don't get compiled and linked
- Calling a function from a third party library but not including the library in the link

But what library do i need to add?

titanelamo
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Look in your program and see where WL_HMAC_SHA1 is used. right click on it and select GoTo Declaration. Hopefully the IDE will bring up the header file in which it is declared.

Make sure you have PocketPC SDK installed and the hardware vendor's SDK.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Hi,
WL_HMAC_SHA1 is used in wzcsapi.lib, i don't found it in my project.

titanelamo
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

did you read any of these google links to see if they can help you?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

yes, but i haven't obtained help in these links. Neither I have found anything searching WL_HMAC_SHA1.

titanelamo
Newbie Poster
3 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Sorry I can't help you any more because I don't have your compiler. You might post the question on Microsoft's technical forums.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This post is very old, but just in case someone else needs an answer to this question, the solution is to include the file cclib.lib to your project libraries.

parajovi
Newbie Poster
1 post since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You