How to include curl.lib?
andre at s-e-a-p.de
Thu Jan 17 20:42:48 UTC 2019
On Thursday, 17 January 2019 at 20:05:27 UTC, Head Scratcher
> On Monday, 14 January 2019 at 18:45:27 UTC, Head Scratcher
>> The following text is in the source code for curl.d:
>> Windows x86 note:
>> A DMD compatible libcurl static library can be downloaded from
>> the dlang.org
>> $(LINK2 http://downloads.dlang.org/other/index.html, download
>> archive page).
>> I downloaded that static library. How do I link it into my D
>> project? Is it something I can put into dub.json?
> It would be nice to compile my app into one EXE file including
> std.curl and curl.lib. Does nobody know how to do this?
You do not need to specify curl.lib but you have to bundle your
executable with curl.dll.
Recent Windows 10 versions might even come with curl.dll but I am
not 100% sure.
More information about the Digitalmars-d-learn