1

While porting a desktop application to windows mobile I've reached the following error:

Error LNK2019: unresolved external symbol CompleteAuthToken referenced in function

Reading MSDN it tell me that CompleteAuthToken is supported on Windows CE 2.10 and later and I should link against Secur32.lib, but adding that library didn't fix the unresolved symbol error. Any ideas?

Note: I'm using Visual Studio 2008 + Windows Mobile 6.0 SDK.

Ismael
  • 2,995
  • 29
  • 45

2 Answers2

1

I think the MSDN docs are wrong. Looking in the Platform Builder source, I see that CompleteAuthToken() is in schannel.def and that it gets built into schannel.lib, not secure32.lib. See if making that change helps.

ctacke
  • 66,480
  • 18
  • 94
  • 155
  • I've tried with schannel.lib, but this library is missing from Windows Mobile SDK 6.0 (it is also missing from 5.0). – Ismael Jan 10 '09 at 22:54
  • Thank you for the hint about "schannel.dll". CompleteAuthToken() is actually exported by that library, and I could load it dynamically via GetProcAddress(). Note that this whole problem is resolved in Windows CE 7.0. – Dr. Koutheir Attouchi May 10 '15 at 15:04
-1

Did you include Security.h?

http://msdn.microsoft.com/en-us/library/aa374764(VS.85).aspx

PiNoYBoY82
  • 1,618
  • 2
  • 14
  • 17
  • unresolved externals mean a missing definition (forgot to include a library to didn't give a function a body, stuff like that). headers primarily provide declarations not definitions. – Evan Teran Jan 09 '09 at 20:37