[2.061] -unittest => /usr/bin/ld: cannot find -lcurl

Philippe Sigaud philippe.sigaud at gmail.com
Thu Jan 3 16:26:59 PST 2013


I updated to 2.061 and now, when I use rdmd with the -unittest 
flag, I have a strange error:

/usr/bin/ld: cannot find -lcurl

Why does it need curl?

It does that even with a simple Hello World (this is my go-to 
test module):

module test;

import std.algorithm;
import std.bigint;
import std.conv;
import std.datetime;
import std.format;
import std.math;
import std.random;
import std.range;
import std.stdio;
import std.string;
import std.traits;
import std.typecons;
import std.typetuple;
import std.variant;

void main()
{
     writeln("Hello World!");
}

Note that I have no problem without the -unittest flag.

$ rdmd test.d

works. Also,

$ dmd -unittest test.d

works flawlessly: it's only with:

$ rdmd -unittest test.d

that the error appears.







More information about the Digitalmars-d mailing list