On 4/24/15 1:05 PM, cym13 wrote:

I don't remember if std.algorithm.each existed in v2.066 but I find it
hard to believe that it is that recent an addition to phobos.

It is: https://issues.dlang.org/show_bug.cgi?id=12409


Well, let's try DMD:

$ dmd --version
DMD64 D Compiler v2.067
....

$ dmd test.d
/usr/lib/libphobos2.a(curl.o): In function
`_D3std3net4curl4HTTP21_sharedStaticCtor1500FZv':
(.text._D3std3net4curl4HTTP21_sharedStaticCtor1500FZv+0xf): undefined
reference to `curl_version_info'
/usr/lib/libphobos2.a(curl.o): In function
`_D3std3net4curl4Curl21_sharedStaticCtor1502FZv':
(.text._D3std3net4curl4Curl21_sharedStaticCtor1502FZv+0xf): undefined
reference to `curl_global_init'

[snip]

This is a sign you don't have libcurl available.

clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Why not try this switch? use dmd -v and see why curl is not being included in link.

Those may be silly little things, but even if I like D a lot I find
these little things tiring (booo, go contribute to fix bug etc....).

These are easily fixed issues. Most people don't run into them. D is usually pretty good when it comes to being able to run out of the box.

-Steve

Reply via email to