Default libraries by dmd

Jesse Phillips jessekphillips+d at gmail.com
Wed Aug 24 22:18:49 PDT 2011


On Thu, 25 Aug 2011 04:46:11 +0000, Cleem wrote:

> What libraries are linked by command dmd as linker? I want to use g++ as
> linker and link phobos2 and druntime libraries. But there are some
> undefined references, for example:
> _D3std4conv13ConvException7__ClassZ
> _D3std4conv16__T5parseTlTAyaZ5parseFKAyaZl
> _D3std5ascii7isDigitFNaNbNfwZb
> _d_arraysetcapacity
> and many others.
> However when I use dmd for linking, I get success. Linux. DMD v2.054.

dmd -v main.d
...
gcc main.o -o main -m64 -Xlinker --export-dynamic -lrt -Xlinker --no-warn-
search-mismatch -lphobos2 -lpthread -lm 


More information about the Digitalmars-d-learn mailing list