gpt4 book ai didi

运行时没有.dll文件的c++ HTTP请求

转载 作者:行者123 更新时间:2023-11-28 03:08:43 25 4
gpt4 key购买 nike

像curl这样的库要求你在运行.exe时有.dll文件

理论上,您应该能够将这些 .dll 静态链接到 .exe

但我找不到一种方法来做到这一点而不会出现错误和崩溃。

但是有没有在运行时不需要外部 .dll 文件的库?这允许我执行 HTTP 请求吗?

最佳答案

Libraries like curl require you to have .dll files when running .exe In theory you should be able to link those .dll statically to the .exe

不,你不能。它们是动态链接库。 DLL 不能静态链接。如果供应商还提供静态 .lib 文件,您可以链接该文件而不是 DLL。这不是一回事。

But I can't find a way to do that without errors and crashes.

不足为奇,因为没有。

But are there libraries which don't require external .dll files at runtime? That allow me to do a HTTP request?

很有可能,但为什么呢?您对 DLL 有何异议?

关于运行时没有.dll文件的c++ HTTP请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19041789/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com