error when attempting unittest

Patrick Tinkham patrick_tinkham at yahoo.com
Sat Mar 23 17:03:40 PDT 2013


When I try to compile a unittest on the following:

import std.stdio;
class A {
   int x = 42;
}

unittest {
   auto a1 = new A;
   assert (a1.x == 42);
   auto a2 = a1;
   a2.x = 100;
   assert (a1.x == 100);
}

I get the following:

patrick at patrick-desktop:~/d$ rdmd --main -unittest c.d
/usr/bin/ld: cannot find -lcurl
collect2: ld returned 1 exit status
--- errorlevel 1
patrick at patrick-desktop:~/d$


I assume that I am missing something. But what?


More information about the Digitalmars-d-learn mailing list