A valid code that won't run?
cym13 via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 24 11:34:51 PDT 2015
On Friday, 24 April 2015 at 18:10:47 UTC, Ali Çehreli wrote:
> On 04/24/2015 10:26 AM, "Marc =?UTF-8?B?U2Now7x0eiI=?=
> <schuetzm at gmx.net>" wrote:
>
>> You need to link against libcurl explicitly, it doesn't happen
>> automatically:
>>
>> dmd -L-lcurl test.d
>
> Another option is to add it to the source:
>
> pragma(lib, "curl");
>
> Then it finds the library on the system and links with it.
>
> Ali
This works, and is actually done in phobos but for windows only.
I opened a PR:
https://github.com/D-Programming-Language/phobos/pull/3223
Maybe there is a good reason for this system check, but I
couldn't find one.
More information about the Digitalmars-d
mailing list