How compile program with curl support?
evilrat
evilrat666 at gmail.com
Thu Aug 22 03:33:25 PDT 2013
On Thursday, 22 August 2013 at 10:00:20 UTC, Ivan Kazmenko wrote:
> On Thursday, 22 August 2013 at 07:28:52 UTC, ilya-stromberg
> wrote:
>> undefined reference to `curl_global_init'
>> undefined reference to `curl_global_cleanup'
>>
>> What should I do to get curl support?
>> OS is Linux Ubuntu 12.10.
>
> I recently had the same problem on Windows (thread:
> http://forum.dlang.org/thread/wdmqzyqoowrhqfpwduej@forum.dlang.org).
> It boiled down to the following: the lib file contained
> functions named like "curl_global_init" but the linker searched
> for "_curl_global_init"
underscores is a part of Windows name mangling, this means on
Windows one can find both C and its own scheme variant(pascal
scheme?), i don't remember all details(though you can easily find
it on the internet), but this is explains ur case.
More information about the Digitalmars-d-learn
mailing list