简体   繁体   中英

Crypto++ library and dependency error

I downloaded and built successfully the Crypto++ library. Looking at it with depends.exe , I see the following:

在此输入图像描述

The "call hierarchy" to the problematic external module seems to be (from depends.exe) :

  • CRYPTOPP.DLL
  • ADVAPI32.DLL
  • USER32.DLL
  • POWRPROF.DLL
  • SETUPAPI.DLL
  • USERENV.DLL
  • GPSVC.DLL

In the Crypto++ source code, I noticed in osrng.h , there is a

#pragma comment(lib, "advapi32.lib")

Anyone could help me understand why there is an unresolved external module from the DLL? I can't use it because of that.

If you have a problem using the library, it's certainly not due to that dependency missing. Note that the hierarchy you listed include advapi32.dll and user32.dll. Both are DLLs directly needed by pretty much every single Windows program, so they clearly can't be unusable.

The hourglass next to the icons in depends.exe means that the DLLs are delay loaded . A delay loaded DLL isn't loaded until a function from it is actually called, so it's entirely possible to delay load from DLLs that doesn't exist and still have a working program.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM