On Thursday, 14 November 2013 at 11:46:19 UTC, Ali Çehreli wrote:
On 11/14/2013 03:43 AM, Andrea Fontana wrote:
Is there a way to define a library to link inside d source? I
can't find
anything about it.
I have never used it but there is pragma(lib):
http://dlang.org/pragma.html
Ali
Hmmm. I see there's a pragma("lib", "curl") inside std.net.curl.
but look at simple test:
import std.net.curl;
import std.stdio;
void main()
{
get("dlang.org").writeln;
}
rdmd test.d -> linking error on curl
dmd test.d -> linking error on curl
dmd test.d -L-lcurl -L-lphobos2 -> works
So I though this function didn't exist. Why doesn't it work?