When trying to use my own build of GDC-4.8-20120105 to build Hello World in D
import std.stdio;
void main(string args[])
{
auto x = 0b10;
writeln(x);
}
I get the following error:
per@lappis:~/alt$ gdc-4.8 ~/f.d /home/per/alt/x86_64-unknown-linux-gnu/lib64/libgphobos2.a
/usr/lib/x86_64-linux-gnu/crt1.o(.text+0x20): error: undefined reference to 'main'
/tmp/cc8j7g1e.o:f.d:function _D1f9__modinitFZv: error: undefined reference to '_Dmodule_ref'
/tmp/cc8j7g1e.o:f.d:function _D1f9__modinitFZv: error: undefined reference to '_Dmodule_ref'
/tmp/cc8j7g1e.o:f.d:function _D1f12__ModuleInfoZ: error: undefined reference to '_D3std5stdio12__ModuleInfoZ'
...
What is wrong?