Adding libraries to an executable

Anton Alexeev alexanto at gmx.de
Thu Sep 12 03:14:51 PDT 2013


On Thursday, 12 September 2013 at 01:16:28 UTC, Mike Parker wrote:
> On 9/12/2013 6:20 AM, Anton Alexeev wrote:
>> On Tuesday, 10 September 2013 at 11:06:04 UTC, Jacob Carlborg 
>> wrote:
>>> On 2013-09-10 11:04, Anton Alexeev wrote:
>>>
>>>> Can be but not libphobos2
>>>
>>> Link statically with it, which is does by default. Just 
>>> compile with:
>>>
>>> dmd -L-lcurl test.d
>>
>> The point is:
>> http://pastebin.com/0VkYgFix
>
> Apparently you need to install the libcurl dev package. The 
> linker can't find libcurl.a.

I've installed libcurl4-openssl-dev 7.29.0-1ubuntu3.1 before I 
asked for help here. Else I can't even compile with that command: 
dmd -L-lphobos2 -L-lcurl test.d


More information about the Digitalmars-d-learn mailing list