I'm using std.net.curl
, so I have to link against libcurl.
Adding -L-lcurl
works.
However, when I'm adding pragma(lib,"curl");
at the top of the file importing std.net.curl
, all sorts of linking errors (missing references) show up.
Why is that? Am I doing anything wrong?
Not such a big issue really, but since I do prefer the pragma
way of linking, I'm actually curious why it's working for e.g. sqlite3
, but not for Curl.