其中“curl.lib”用于DMD? [英] Where is "curl.lib" for DMD?

查看:247
本文介绍了其中“curl.lib”用于DMD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我 import etcc.curl; DMD告诉我

Warning 2: File Not Found curl.lib

这个curl.lib在哪里?

Where is this curl.lib?

(我尝试过 http:// curl .haxx.se / download.html 但没有找到curl.lib。MSVC包 libcurl-7.19.3-win32-ssl-msvc.zip 有一个 curllib.lib ,但DMD不会链接。)

(I've tried several packages from http://curl.haxx.se/download.html but haven't found curl.lib there. MSVC package libcurl-7.19.3-win32-ssl-msvc.zip have a curllib.lib but DMD won't link with it.)

推荐答案

您可以使用 implib 创建curl.lib。 Implib位于基本工具下载中。

You can create curl.lib using implib. Implib is in the Basic Utilities download.

在/libcurl-7.19.3-win32-ssl-msvc/lib/Release/中对您的curllib.dll运行它,如下所示:

Run it against your curllib.dll in /libcurl-7.19.3-win32-ssl-msvc/lib/Release/ like this:

implib /s curl.lib curllib.dll

然后放入curl.lib dmd可以找到它并编译。很抱歉,您可能仍会收到关于缺少libsasl.dll 当你运行你的程序。您可以使用来自Shining Light Productions的二进制文件,使用MSVC从 OpenSSL 来源,或在线上搜索。

Then put curl.lib where dmd can find it and compile. Unfortunately, you'll probably still get an error about a missing libsasl.dll when you run your program. You may be able to use a binary from Shining Light Productions, build it with MSVC from the OpenSSL source, or hunt it down online.

您仍然可能会遇到冲突版本的问题。如果你浏览etcc.curl源,你会注意到它列出它的cURL版本为7.21.4,它不匹配任何Windows二进制文件可用。如果你想要非常可靠的东西,你可能需要等待下一个D cURL模块或自己构建一切。

There's still a possibility you'll have trouble with conflicting versions. If you browse the etc.c.curl source, you'll notice it lists its cURL version as 7.21.4, which doesn't match any of the Windows binaries available. If you want something very reliable, you may have to wait for the next D cURL module or build everything yourself.

这篇关于其中“curl.lib”用于DMD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆