request assistance resolving curl related linker error

Martin Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 18 09:09:02 PDT 2014


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.


More information about the Digitalmars-d-learn mailing list