On Thursday, 8 May 2014 at 07:55:04 UTC, Jacob Carlborg wrote:
On 08/05/14 08:53, iridium wrote:

That's what happens when linking:
http://itmages.ru/image/view/1655772/669acb30

You need to link with both Phobos and the C standard library. Run "dmd -v main.d" and look at the linking step at the end.

dmd -v test.d result: http://itmages.ru/image/view/1655879/d0bb1c62

gcc -o main test.o ../../phobos/generated/haiku/release/32/libphobos2.a -lstdc++ -lroot result: http://itmages.ru/image/view/1655886/0be9d48f

Reply via email to