Re: request assistance resolving curl related linker error

2014-08-19 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 19 August 2014 at 03:56:38 UTC, ketmar via Digitalmars-d-learn wrote: On Tue, 19 Aug 2014 03:37:23 + Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: And Windows. Since, apparently, pragma(lib) is only supported by COFF and OMF. nope,

request assistance resolving curl related linker error

2014-08-18 Thread Andrew Edwards via Digitalmars-d-learn
import std.net.curl; void main(){} // Output: Undefined symbols for architecture x86_64: _curl_easy_cleanup, referenced from: _D3std3net4curl4Curl8shutdownMFZv in libphobos2.a(curl_3063_37c.o) _curl_easy_setopt, referenced from:

Re: request assistance resolving curl related linker error

2014-08-18 Thread Martin Nowak via Digitalmars-d-learn
On Monday, 18 August 2014 at 14:24:54 UTC, Andrew Edwards wrote: import std.net.curl; void main(){} // Output: Undefined symbols for architecture x86_64: _curl_easy_cleanup, referenced from: The problem here is that std.net.curl is based on libcurl, so you need to link your program

Re: request assistance resolving curl related linker error

2014-08-18 Thread Martin Nowak via Digitalmars-d-learn
On Monday, 18 August 2014 at 16:09:04 UTC, Martin Nowak wrote: The problem here is that std.net.curl is based on libcurl, so you need to link your program against it. Add '-L-lcurl' to your dmd invocation to do this. I also added an enhancement request to load curl at runtime.

Re: request assistance resolving curl related linker error

2014-08-18 Thread Andrew Edwards via Digitalmars-d-learn
On 8/19/14, 1:09 AM, Martin Nowak wrote: On Monday, 18 August 2014 at 14:24:54 UTC, Andrew Edwards wrote: import std.net.curl; void main(){} // Output: Undefined symbols for architecture x86_64: _curl_easy_cleanup, referenced from: The problem here is that std.net.curl is based on

Re: request assistance resolving curl related linker error

2014-08-18 Thread ketmar via Digitalmars-d-learn
On Tue, 19 Aug 2014 09:56:30 +0900 Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Add '-L-lcurl' to your dmd invocation to do this. Okay, got it. Thank you much. or you can add pragma(lib, curl); to your source file if you are using dmd. signature.asc

Re: request assistance resolving curl related linker error

2014-08-18 Thread Vladimir Panteleev via Digitalmars-d-learn
On Tuesday, 19 August 2014 at 02:24:48 UTC, ketmar via Digitalmars-d-learn wrote: On Tue, 19 Aug 2014 09:56:30 +0900 Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Add '-L-lcurl' to your dmd invocation to do this. Okay, got it. Thank you much. or you can add

Re: request assistance resolving curl related linker error

2014-08-18 Thread ketmar via Digitalmars-d-learn
On Tue, 19 Aug 2014 03:37:23 + Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: And Windows. Since, apparently, pragma(lib) is only supported by COFF and OMF. nope, GNU/Linux DMD supports it too (at least 32-bit version). signature.asc Description: PGP

Re: request assistance resolving curl related linker error

2014-08-18 Thread Andrew Edwards via Digitalmars-d-learn
On Tuesday, 19 August 2014 at 02:24:48 UTC, ketmar via Digitalmars-d-learn wrote: On Tue, 19 Aug 2014 09:56:30 +0900 Andrew Edwards via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Add '-L-lcurl' to your dmd invocation to do this. Okay, got it. Thank you much. or you can add