request assistance resolving curl related linker error

Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 18 17:56:30 PDT 2014


On 8/19/14, 1:09 AM, Martin Nowak wrote:
> On Monday, 18 August 2014 at 14:24:54 UTC, Andrew Edwards wrote:
>> import std.net.curl;
>>
>> void main(){}
>>
>> // Output:
>>
>> Undefined symbols for architecture x86_64:
>>   "_curl_easy_cleanup", referenced from:
>
> The problem here is that std.net.curl is based on libcurl, so you need
> to link your program against it.
> Add '-L-lcurl' to your dmd invocation to do this.

Okay, got it. Thank you much.


More information about the Digitalmars-d-learn mailing list