无法将bcrypt.lib链接到64位版本 [英] Can not link bcrypt.lib to an 64-bit build
问题描述
我正在尝试使用Windows SDK中使用bcrypt.lib的应用程序进行64位构建.该应用程序链接到32位平台,但是在链接到64位平台时,找不到用于bcrypt.lib中定义的功能的符号.链接器从[WindowsSDK] \ lib中找到bcrypt.lib,但报告未解析的外部符号".
我已经使用#pragma comment(lib,"bcrypt.lib")包含该库,并将该库的路径从以下位置添加到LIB环境变量中: VS选项(工具->选项-> VC ++目录).
上述方法是否可行?为什么bcrypt.lib位于[WindowsSDK] \ lib中,而不位于[WindowsSDK] \ lib \ x64中?
I'm trying to make a 64-bit build of an application that uses bcrypt.lib from the Windows SDK. The application links for the 32-bit platform, but fails to find symbols for the functions defined in bcrypt.lib when linking for the 64-bit platform. The linker finds bcrypt.lib from [WindowsSDK]\lib, but reports "unresolved external symbol" for all used symbols from bcrypt.lib.
I have used #pragma comment(lib, "bcrypt.lib") to include the library, and added the path to the library to LIB environment variable from VS options (Tools -> Options -> VC++ Directories).
Should the above approach work? Why bcrypt.lib is located in [WindowsSDK]\lib, and not in [WindowsSDK]\lib\x64?
推荐答案
嗨-
您正在使用什么版本的SDK?
感谢-
Mike Robinson
程序管理器
Windows SDK团队
Hi -
What version of the SDK are you using?
Thanks -
Mike Robinson
Program Manager
Windows SDK Team
这篇关于无法将bcrypt.lib链接到64位版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!