A valid code that won't run?

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 24 11:10:47 PDT 2015


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



More information about the Digitalmars-d mailing list