Microsoft 使用压缩的示例代码中未解析的外部符号 API
Unresolved external symbols in sample code from Microsoft with Compression API
我尝试使用 Microsoft 的 Compression API,但甚至无法构建示例代码,因为存在未解决的外部符号错误。我应该 link 别的吗?在 Microsoft 站点 https://docs.microsoft.com/en-us/windows/win32/cmpapi/using-the-compression-api-in-buffer-mode 上,您可以阅读 "Windows 8 and Windows Server 2012: To use the following example code, you must be running Windows 8 or Windows Server 2012 and have "compressapi.h" 和 "cabinet.dll" 以及 link 到 "Cabinet.lib"。"我正在使用 Windows 10。所以我应该添加 Cabinet.lib(我在哪里可以找到它?)或者我已经在 Windows 10 上了?
代码与现场完全相同。
您需要将 cabinet.lib
添加到链接器依赖项。
我尝试使用 Microsoft 的 Compression API,但甚至无法构建示例代码,因为存在未解决的外部符号错误。我应该 link 别的吗?在 Microsoft 站点 https://docs.microsoft.com/en-us/windows/win32/cmpapi/using-the-compression-api-in-buffer-mode 上,您可以阅读 "Windows 8 and Windows Server 2012: To use the following example code, you must be running Windows 8 or Windows Server 2012 and have "compressapi.h" 和 "cabinet.dll" 以及 link 到 "Cabinet.lib"。"我正在使用 Windows 10。所以我应该添加 Cabinet.lib(我在哪里可以找到它?)或者我已经在 Windows 10 上了?
代码与现场完全相同。
您需要将 cabinet.lib
添加到链接器依赖项。