This gets weirder. The following program shows the error (undefined references to curl): int main() { import std.stdio; import std.conv; stdin.byLine(); char[] s; to!int(s); parse!int(s); return 0; } But, swapping the calls to 'to' and 'parse' makes it link just fine.