How compile program with curl support?
Jordi Sayol
g.sayol at yahoo.es
Thu Aug 22 09:32:07 PDT 2013
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.digitalmars-d@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
More information about the Digitalmars-d-learn
mailing list