Link errors with curl, libevent, OpenSSL
AndyC via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 25 07:23:02 PST 2015
On Sunday, 25 January 2015 at 15:11:33 UTC, AndyC wrote:
> On Sunday, 25 January 2015 at 05:48:26 UTC, Vladimir Panteleev
> wrote:
>> On my Ubuntu Server, I can't link any D program which uses
>> libraries other than Phobos.
>>
>> Example:
>>
>> //////////////////////////////
>> import std.net.curl;
>> import std.stdio;
>>
>> void main()
>> {
>> writeln(get("dlang.org"));
>> }
>> //////////////////////////////
>>
>> dlang at k3:~/2015-01-25$ dmd -L-lcurl test.d
>> /usr/local/lib/x86_64-linux-gnu/libphobos2.a(curl.o): In
>> function `_D3std3net4curl4HTTP19_sharedStaticCtor34FZv':
>> /usr/local/src/phobos/std/net/curl.d:2503: undefined reference
>
>
> What weirdness has Ubuntu done that this doesn't work? I'm
> running Slackware and just tried your example and it works fine.
>
> Does Ubuntu have developer curl packages as well as regular
> curl packages? Maybe libcurl-dev package?
>
> -Andy
Yep, Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1001576
-Andy
More information about the Digitalmars-d-learn
mailing list