On 22/08/13 15:20, evilrat wrote:
> On Thursday, 22 August 2013 at 13:15:39 UTC, ilya-stromberg wrote:
>> On Thursday, 22 August 2013 at 10:24:49 UTC, David wrote:
>>>> What should I do to get curl support?
>>>> OS is Linux Ubuntu 12.10.
>>>
>>> Install libcurl-dev
>>> http://packages.ubuntu.com/de/lucid/libcurl-dev
>>>
>>> Add "-L-lcurl" to your commandline
>>
>> Thanks for help. Correct answer was here:
>> http://forum.dlang.org/post/mailman.1089.1350735488.5162.digitalmar...@puremagic.com
>>
>> $ dmd -L-lphobos2 -L-lcurl main.d
>>
>> As I can see by google, this is common issue. How can we document the 
>> compilation proses?
> 
> why do u link phobos when compiler do this for you?

On static linking, the library order cares. "libphobos2" depends on "libcurl", 
so "libphobos2" should be passed to the linker before than "libcurl".

> 
> btw in fact i've seen somewhere on site/wiki/forums instructions "how to 
> build libcurl for D" or something.
> 

-- 
Jordi Sayol

Reply via email to